diff options
author | Arun Kumar K.R <akumarkr@codeaurora.org> | 2017-08-15 23:25:40 +0530 |
---|---|---|
committer | Arun Kumar K.R <akumarkr@codeaurora.org> | 2017-08-18 14:55:03 +0530 |
commit | 42a514ab089ee2985cbb9fba0fb5fb8819989c72 (patch) | |
tree | 9555d42e821497323b96e522bc69f593dee85ba6 /liblight | |
parent | f5f24c9bdb53170c4397e0bf609dea93a26ef01d (diff) | |
download | display-42a514ab089ee2985cbb9fba0fb5fb8819989c72.tar.gz |
liblights: Remove unsupported button light node.
Light button is not supported on the msm platform, hence
remove that from the capability list.
Change-Id: I5a49ac767f9ccae0232992343b92e08bffdad6a2
Crs-fixed: 2093165
Diffstat (limited to 'liblight')
-rw-r--r-- | liblight/lights.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/liblight/lights.c b/liblight/lights.c index 3b5068cf..3b4f8960 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -307,20 +307,6 @@ set_light_attention(struct light_device_t* dev, return 0; } -static int -set_light_buttons(struct light_device_t* dev, - struct light_state_t const* state) -{ - int err = 0; - if(!dev) { - return -1; - } - pthread_mutex_lock(&g_lock); - err = write_int(BUTTON_FILE, state->color & 0xFF); - pthread_mutex_unlock(&g_lock); - return err; -} - /** Close the lights device */ static int close_lights(struct light_device_t *dev) @@ -361,8 +347,6 @@ static int open_lights(const struct hw_module_t* module, char const* name, set_light = set_light_battery; else if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name)) set_light = set_light_notifications; - else if (0 == strcmp(LIGHT_ID_BUTTONS, name)) - set_light = set_light_buttons; else if (0 == strcmp(LIGHT_ID_ATTENTION, name)) set_light = set_light_attention; else |