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
This commit is contained in:
Arun Kumar K.R
2017-08-15 23:25:40 +05:30
parent f5f24c9bdb
commit 42a514ab08

View File

@@ -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