summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhee Seo <yuni.seo@samsung.com>2024-04-09 11:24:45 +0900
committerYunhee Seo <yuni.seo@samsung.com>2024-04-09 15:32:28 +0900
commit40944855fe48964bec141f67de03b754ea93d041 (patch)
tree69d5c5136e704fcf09d20d2a259497781613055f
parent44374ed97c42b2f5e7c829ed365a5265ae49799c (diff)
downloaddevice-rpi-40944855fe48964bec141f67de03b754ea93d041.tar.gz
device-rpi-40944855fe48964bec141f67de03b754ea93d041.tar.bz2
device-rpi-40944855fe48964bec141f67de03b754ea93d041.zip
haptic: Fix incorrect module naming
According to HAL API Prototype rule, hal module funcs structure naming should be hal_backend_[module]_funcs. However, the hal module name was being used incorrectly. Actual module name is not "haptic" but "device-haptic". Change-Id: I7123f7905e36dda623bf5e3f1b5afbd94162b91e Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r--hw/haptic/gpio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/hw/haptic/gpio.c b/hw/haptic/gpio.c
index 0a493f6..4ce96d3 100644
--- a/hw/haptic/gpio.c
+++ b/hw/haptic/gpio.c
@@ -20,7 +20,7 @@
#include <glib.h>
#include <peripheral_io.h>
#include <libsyscommon/list.h>
-#include <hal/hal-haptic-interface.h>
+#include <hal/hal-device-haptic-interface.h>
#include </hal/include/device/hal-backend-common.h>
@@ -315,20 +315,20 @@ static bool is_valid(void)
static int haptic_init(void **data)
{
- hal_backend_haptic_funcs *haptic_funcs;
+ hal_backend_device_haptic_funcs *device_haptic_funcs;
- haptic_funcs = calloc(1, sizeof(hal_backend_haptic_funcs));
- if (!haptic_funcs)
+ device_haptic_funcs = calloc(1, sizeof(hal_backend_device_haptic_funcs));
+ if (!device_haptic_funcs)
return -ENOMEM;
- haptic_funcs->get_device_count = gpio_haptic_get_device_count;
- haptic_funcs->open_device = gpio_haptic_open_device;
- haptic_funcs->close_device = gpio_haptic_close_device;
- haptic_funcs->vibrate_monotone = gpio_haptic_vibrate_monotone;
- haptic_funcs->stop_device = gpio_haptic_stop_device;
- haptic_funcs->is_valid = is_valid;
+ device_haptic_funcs->get_device_count = gpio_haptic_get_device_count;
+ device_haptic_funcs->open_device = gpio_haptic_open_device;
+ device_haptic_funcs->close_device = gpio_haptic_close_device;
+ device_haptic_funcs->vibrate_monotone = gpio_haptic_vibrate_monotone;
+ device_haptic_funcs->stop_device = gpio_haptic_stop_device;
+ device_haptic_funcs->is_valid = is_valid;
- *data = (void *)haptic_funcs;
+ *data = (void *)device_haptic_funcs;
return 0;
}