Add vibration intensity controller for bezel 94/237994/1 accepted/tizen/5.5/unified/20200713.130018 submit/tizen_5.5/20200707.084952 submit/tizen_5.5/20200707.101901 submit/tizen_5.5/20200708.060217
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Jul 2020 07:58:43 +0000 (16:58 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Jul 2020 07:58:43 +0000 (16:58 +0900)
Change-Id: I9f59841bfeb88db49306c2e486174ad287413fac
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
hw/bezel.h

index 4be3bb9..d27e044 100644 (file)
@@ -34,6 +34,13 @@ enum bezel_state {
        BEZEL_TURNON,
 };
 
+enum bezel_vib_state {
+       BEZEL_VIB_NONE = 0,
+       BEZEL_VIB_LIGHT,
+       BEZEL_VIB_MEDIUM,
+       BEZEL_VIB_STRONG,
+};
+
 struct bezel_device {
        struct hw_common common;
 
@@ -45,6 +52,10 @@ struct bezel_device {
        /* Control software bezel state */
        int (*get_sw_state)(enum bezel_state *state);
        int (*set_sw_state)(enum bezel_state state);
+
+       /* Control bezel vibration state */
+       int (*get_vib_state)(enum bezel_vib_state *state);
+       int (*set_vib_state)(enum bezel_vib_state state);
 };
 
 #endif