From: Jonathan Bakker Date: Mon, 7 Jan 2019 19:11:04 +0000 (-0800) Subject: Input: tm2-touchkey - correct initial brightness X-Git-Tag: v5.15~74^2~185^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5a158cec4f33fbab031fc97fc17bfe5371925be;p=platform%2Fkernel%2Flinux-starfive.git Input: tm2-touchkey - correct initial brightness tm2-touchkey doesn't have brightness levels, but only on/off states, so replace LED_FULL with LED_ON. Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c index 5a1fe08..0336789 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -230,7 +230,7 @@ static int tm2_touchkey_probe(struct i2c_client *client, /* led device */ touchkey->led_dev.name = TM2_TOUCHKEY_DEV_NAME; - touchkey->led_dev.brightness = LED_FULL; + touchkey->led_dev.brightness = LED_ON; touchkey->led_dev.max_brightness = LED_ON; touchkey->led_dev.brightness_set = tm2_touchkey_led_brightness_set;