device-haptic: Apply native API style 59/309359/3
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 9 Apr 2024 02:14:19 +0000 (11:14 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 15 Apr 2024 07:28:05 +0000 (07:28 +0000)
In hal-device-haptic module,
definition and declarations are should be follow native API principles.
To follow native style, comment and data structure/function naming is changed like below descriptions.

1. Naming enumeration with suffix '_e'
2. Naming enum type with prefix sub module

Change-Id: I3a10da467008f30e7cd55ac1f6803a8a11f646fa
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
include/hal-device-haptic-types.h

index be889215f0f52a0d1fadcf4d345c38dafdde46f7..80c23da723f4c7d7930edf40ba4df1e416debd24 100644 (file)
@@ -26,10 +26,11 @@ extern "C" {
 
 /**
  * @brief Enumerations of unlimited duration for the Haptic Module API.
+ * @since HAL_MODULE_DEVICE_HAPTIC 1.0
  */
 typedef enum {
-       HAPTIC_MODULE_DURATION_UNLIMITED = 0x7FFFFFFF,
-} haptic_module_duration;
+       HAL_DEVICE_HAPTIC_MODULE_DURATION_UNLIMITED = 0x7FFFFFFF,
+} hal_device_haptic_module_duration_e;
 
 #ifdef __cplusplus
 }