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:
@@ -307,20 +307,6 @@ set_light_attention(struct light_device_t* dev,
|
|||||||
return 0;
|
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 */
|
/** Close the lights device */
|
||||||
static int
|
static int
|
||||||
close_lights(struct light_device_t *dev)
|
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;
|
set_light = set_light_battery;
|
||||||
else if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name))
|
else if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name))
|
||||||
set_light = set_light_notifications;
|
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))
|
else if (0 == strcmp(LIGHT_ID_ATTENTION, name))
|
||||||
set_light = set_light_attention;
|
set_light = set_light_attention;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user