summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjy910.yun <jy910.yun@samsung.com>2013-06-24 10:48:49 +0900
committerKrzysztof Sasiak <k.sasiak@samsung.com>2014-01-20 09:51:23 +0100
commitd65efaf311abaf22ffd0d9bc22c28182e003304a (patch)
tree3ae2389c7e79ba2812bba3aa056dc6946d5081f4
parent9821657756a1b461c1dd90719736096a153c5b2a (diff)
downloadlibdevice-node-d65efaf311abaf22ffd0d9bc22c28182e003304a.tar.gz
libdevice-node-d65efaf311abaf22ffd0d9bc22c28182e003304a.tar.bz2
libdevice-node-d65efaf311abaf22ffd0d9bc22c28182e003304a.zip
- 'OEM_sys_get/set_hardkey_backlight' Change-Id: I153ddfe42132c5e3e3baf45fb44bcaa61fbc49cf Signed-off-by: jy910.yun <jy910.yun@samsung.com>
-rw-r--r--devices/led.c4
-rw-r--r--include/device-node.h1
-rw-r--r--include/devman_plugin_intf.h3
3 files changed, 8 insertions, 0 deletions
diff --git a/devices/led.c b/devices/led.c
index 925b306..2ee89db 100644
--- a/devices/led.c
+++ b/devices/led.c
@@ -26,6 +26,8 @@ static int led_get_prop(int prop, int *val)
return PLUGIN_GET(leds_torch_max_brightness)(val);
case PROP_LED_BRIGHTNESS:
return PLUGIN_GET(leds_torch_brightness)(val);
+ case PROP_LED_HARDKEY:
+ return PLUGIN_GET(hardkey_backlight)(val);
}
return -1;
@@ -36,6 +38,8 @@ static int led_set_prop(int prop, int val)
switch (prop) {
case PROP_LED_BRIGHTNESS:
return PLUGIN_SET(leds_torch_brightness)(val);
+ case PROP_LED_HARDKEY:
+ return PLUGIN_SET(hardkey_backlight)(val);
}
return -1;
diff --git a/include/device-node.h b/include/device-node.h
index 935bc18..60caccd 100644
--- a/include/device-node.h
+++ b/include/device-node.h
@@ -115,6 +115,7 @@ enum {
enum {
PROP_LED_BRIGHTNESS,
PROP_LED_MAX_BRIGHTNESS,
+ PROP_LED_HARDKEY,
};
/**
diff --git a/include/devman_plugin_intf.h b/include/devman_plugin_intf.h
index 15e88af..c4e0587 100644
--- a/include/devman_plugin_intf.h
+++ b/include/devman_plugin_intf.h
@@ -168,6 +168,9 @@ typedef struct {
int (*OEM_sys_get_hdmi_support) (int *value);
+
+ int (*OEM_sys_get_hardkey_backlight) (int *value);
+ int (*OEM_sys_set_hardkey_backlight) (int value);
} OEM_sys_devman_plugin_interface;
const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_interface();