aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJonathan Bakker <xc-racer2@live.ca>2019-01-07 11:11:04 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-01-07 11:49:40 -0800
commitd5a158cec4f33fbab031fc97fc17bfe5371925be (patch)
tree4495e7d9c267033133e56f9a99d6a8df22cc49d7 /drivers/input
parentInput: tm2-touchkey - add support for midas touchkey (diff)
downloadlinux-dev-d5a158cec4f33fbab031fc97fc17bfe5371925be.tar.xz
linux-dev-d5a158cec4f33fbab031fc97fc17bfe5371925be.zip
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 <xc-racer2@live.ca> Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/tm2-touchkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c
index 5a1fe08bdd76..0336789ab1bb 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;