diff options
author | leozwang <leozwang@google.com> | 2016-03-12 22:24:21 -0800 |
---|---|---|
committer | leozwang <leozwang@google.com> | 2016-03-12 22:24:21 -0800 |
commit | ded919318b50551c02632b1afa558a20bce202db (patch) | |
tree | cafcfbab19d77a080ebc355de2b13e3e1796b10c | |
parent | 55f75b6eb312fae73cb9958df2e68745611008b4 (diff) | |
download | rockchip-ded919318b50551c02632b1afa558a20bce202db.tar.gz |
Fix light bug.
Bug: 27381177
Bug: 27383791
Change-Id: I3df4db0c7ab3da34249682e70d4d95627a50d3c7
-rw-r--r-- | lights/lights.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lights/lights.c b/lights/lights.c index 1bd19f5..9f5b2d2 100644 --- a/lights/lights.c +++ b/lights/lights.c @@ -33,8 +33,7 @@ static pthread_once_t g_init = PTHREAD_ONCE_INIT; static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER; -char const* const LED1_LED_FILE - = "/sys/class/leds/leds/brightness"; +char const* const LED1_LED_FILE = "/sys/class/leds/kylin:red:led/brightness"; /** * device methods @@ -99,6 +98,7 @@ static int open_lights(const struct hw_module_t* module, char const* name, if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name)) set_light = set_light_notifications; + else return -EINVAL; pthread_once(&g_init, init_globals); |