summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhee Seo <yuni.seo@samsung.com>2024-04-09 20:14:58 +0900
committerYunhee Seo <yuni.seo@samsung.com>2024-04-09 20:14:58 +0900
commitb2404ae8209ec0f5ecba93d74d439a739a1f71d3 (patch)
tree388a29d9f34f55d75650a3b9844518b29fd8b6a9
parent4d5931d8563a84b0ebf7b1c6d4f51cb2d9efcf29 (diff)
downloaddevice-emulator-b2404ae8209ec0f5ecba93d74d439a739a1f71d3.tar.gz
device-emulator-b2404ae8209ec0f5ecba93d74d439a739a1f71d3.tar.bz2
device-emulator-b2404ae8209ec0f5ecba93d74d439a739a1f71d3.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: I49b75853d00afb10342f7b14f29e4ff2e01d463d Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r--hw/haptic/emulator.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/hw/haptic/emulator.c b/hw/haptic/emulator.c
index 3291489..441cdad 100644
--- a/hw/haptic/emulator.c
+++ b/hw/haptic/emulator.c
@@ -20,7 +20,7 @@
#include <stdbool.h>
#include <system_info.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>
@@ -129,20 +129,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 = get_device_count;
- haptic_funcs->open_device = open_device;
- haptic_funcs->close_device = close_device;
- haptic_funcs->vibrate_monotone = vibrate_monotone;
- haptic_funcs->stop_device = stop_device;
- haptic_funcs->is_valid = is_valid;
+ device_haptic_funcs->get_device_count = get_device_count;
+ device_haptic_funcs->open_device = open_device;
+ device_haptic_funcs->close_device = close_device;
+ device_haptic_funcs->vibrate_monotone = vibrate_monotone;
+ device_haptic_funcs->stop_device = stop_device;
+ device_haptic_funcs->is_valid = is_valid;
- *data = (void *)haptic_funcs;
+ *data = (void *)device_haptic_funcs;
return 0;
}