* [PATCH] Input: tm2-touchkey - use LEN_ON as boolean value instead of LED_FULL
[not found] <CGME20170327132914epcas1p150dbc9723f4ff06329d3d3486ad666f7@epcas1p1.samsung.com>
@ 2017-03-27 13:29 ` Andi Shyti
2017-03-28 7:55 ` Jaechul Lee
0 siblings, 1 reply; 2+ messages in thread
From: Andi Shyti @ 2017-03-27 13:29 UTC (permalink / raw)
To: Dmitry Torokhov, Jaechul Lee, Beomho Seo
Cc: linux-input, linux-kernel, Andi Shyti, Andi Shyti
Commit 4e552c8cb5bc ("leds: add LED_ON brightness as boolean value")
has introduced the LED_ON enumeration value that can be used
instead of LED_FULL which has more of a linear value.
Because the tm2-touchscreen doesn't have brightness levels, but
it's a simple on/off led, use LED_ON instead of LED_FULL.
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
drivers/input/keyboard/tm2-touchkey.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c
index 485900f953e0..abc266e40e17 100644
--- a/drivers/input/keyboard/tm2-touchkey.c
+++ b/drivers/input/keyboard/tm2-touchkey.c
@@ -213,7 +213,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.max_brightness = LED_FULL;
+ touchkey->led_dev.max_brightness = LED_ON;
touchkey->led_dev.brightness_set = tm2_touchkey_led_brightness_set;
error = devm_led_classdev_register(&client->dev, &touchkey->led_dev);
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: tm2-touchkey - use LEN_ON as boolean value instead of LED_FULL
2017-03-27 13:29 ` [PATCH] Input: tm2-touchkey - use LEN_ON as boolean value instead of LED_FULL Andi Shyti
@ 2017-03-28 7:55 ` Jaechul Lee
0 siblings, 0 replies; 2+ messages in thread
From: Jaechul Lee @ 2017-03-28 7:55 UTC (permalink / raw)
To: Andi Shyti
Cc: Dmitry Torokhov, Beomho Seo, linux-input, linux-kernel,
Andi Shyti
Hello,
There is a typing error at the subject.(LEN_ON->LED_ON)
Anyway, your patch is working well and looks good to me.
I reviewed and tested with this patch on TM2.
Reviewed-by: Jaechul Lee <jcsing.lee@samsung.com>
Tested-by: Jaechul Lee <jcsing.lee@samsung.com>
Best Regards,
Jaechul Lee
On Mon, Mar 27, 2017 at 10:29:05PM +0900, Andi Shyti wrote:
> Commit 4e552c8cb5bc ("leds: add LED_ON brightness as boolean value")
> has introduced the LED_ON enumeration value that can be used
> instead of LED_FULL which has more of a linear value.
>
> Because the tm2-touchscreen doesn't have brightness levels, but
> it's a simple on/off led, use LED_ON instead of LED_FULL.
>
> Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
> ---
> drivers/input/keyboard/tm2-touchkey.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c
> index 485900f953e0..abc266e40e17 100644
> --- a/drivers/input/keyboard/tm2-touchkey.c
> +++ b/drivers/input/keyboard/tm2-touchkey.c
> @@ -213,7 +213,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.max_brightness = LED_FULL;
> + touchkey->led_dev.max_brightness = LED_ON;
> touchkey->led_dev.brightness_set = tm2_touchkey_led_brightness_set;
>
> error = devm_led_classdev_register(&client->dev, &touchkey->led_dev);
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-28 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20170327132914epcas1p150dbc9723f4ff06329d3d3486ad666f7@epcas1p1.samsung.com>
2017-03-27 13:29 ` [PATCH] Input: tm2-touchkey - use LEN_ON as boolean value instead of LED_FULL Andi Shyti
2017-03-28 7:55 ` Jaechul Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).