projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6f66f6
)
Input: tm2-touchkey - correct initial brightness
author
Jonathan Bakker
<
[email protected]
>
Mon, 7 Jan 2019 19:11:04 +0000
(11:11 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Mon, 7 Jan 2019 19:49:40 +0000
(11:49 -0800)
tm2-touchkey doesn't have brightness levels, but only on/off states,
so replace LED_FULL with LED_ON.
Signed-off-by: Jonathan Bakker <
[email protected]
>
Signed-off-by: Paweł Chmiel <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/keyboard/tm2-touchkey.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/tm2-touchkey.c
b/drivers/input/keyboard/tm2-touchkey.c
index 5a1fe08bdd76179bbd32870811becabbeafb5999..0336789ab1bb2a481cdf17897d7f35765b44669b 100644
(file)
--- 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;