From: Yunhee Seo Date: Tue, 9 Apr 2024 09:06:11 +0000 (+0900) Subject: haptic: Fix incorrect module naming X-Git-Tag: accepted/tizen/unified/20240614.085003~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fd73febdf40d5ee1d7f0b372e5069c8bd00863b;p=platform%2Fhal%2Fbackend%2Fvim3%2Fdevice-vim3.git 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: Ic768551603aaa7326153bf3d747ecbc331aa20ff Signed-off-by: Yunhee Seo --- diff --git a/hw/haptic/gpio.c b/hw/haptic/gpio.c index b8dae54..11c53d6 100644 --- a/hw/haptic/gpio.c +++ b/hw/haptic/gpio.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include @@ -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; }