gts3l-common: light: Edit for the gts3l family

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0ce13d375d924e887cb6ab62c616842ec5eb8de2
This commit is contained in:
Deokgyu Yang 2021-08-13 22:19:24 +09:00
parent 386d61ff4d
commit 90cfd24739
3 changed files with 7 additions and 5 deletions

View file

@ -31,8 +31,8 @@ LOCAL_SHARED_LIBRARIES := \
libutils \
android.hardware.light@2.0
LOCAL_MODULE := android.hardware.light@2.0-service.samsung
LOCAL_INIT_RC := android.hardware.light@2.0-service.samsung.rc
LOCAL_MODULE := android.hardware.light@2.0-service.gts3l
LOCAL_INIT_RC := android.hardware.light@2.0-service.gts3l.rc
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_OWNER := samsung

View file

@ -1,4 +1,4 @@
service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.samsung
service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.gts3l
interface android.hardware.light@2.0::ILight default
class hal
user system

View file

@ -25,9 +25,11 @@
* symlink to the locations given here, or override this header in your
* device tree.
*/
#define PANEL_BRIGHTNESS_NODE "/sys/class/backlight/panel/brightness"
#define PANEL_MAX_BRIGHTNESS_NODE "/sys/class/backlight/panel/max_brightness"
#define PANEL_BRIGHTNESS_NODE "/sys/class/leds/lcd-backlight/brightness"
#define PANEL_MAX_BRIGHTNESS_NODE "/sys/class/leds/lcd-backlight/max_brightness"
#define BUTTON_BRIGHTNESS_NODE "/sys/class/sec/sec_touchkey/brightness"
// Those two paths don't exist in the Galaxy Tab S3 sysfs
#define LED_BLINK_NODE "/sys/class/sec/led/led_blink"
#define LED_BLN_NODE "/sys/class/misc/backlightnotification/notification_led"