devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paweł Chmiel" <pawel.mikolaj.chmiel@gmail.com>
To: dmitry.torokhov@gmail.com
Cc: robh+dt@kernel.org, mark.rutland@arm.com,
	devicetree@vger.kernel.org, linux-input@vger.kernel.org,
	linux-kernel@vger.kernel.org, pawel.mikolaj.chmiel@gmail.com,
	xc-racer2@live.ca, simon@lineageos.org
Subject: [PATCH v3 3/7] Input: tm2-touchkey: Correct initial brightness
Date: Mon,  7 Jan 2019 19:53:42 +0100	[thread overview]
Message-ID: <20190107185346.30184-4-pawel.mikolaj.chmiel@gmail.com> (raw)
In-Reply-To: <20190107185346.30184-1-pawel.mikolaj.chmiel@gmail.com>

From: Jonathan Bakker <xc-racer2@live.ca>

Tm2-touchkey don'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>
---
 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 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;
 
-- 
2.17.1

  parent reply	other threads:[~2019-01-07 18:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-07 18:53 [PATCH v3 0/7] Input: tm2-touchkey: Add support for Aries and Midas Paweł Chmiel
2019-01-07 18:53 ` [PATCH v3 1/7] Input: tm2-touchkey: Add support for midas touchkey Paweł Chmiel
2019-01-07 18:53 ` [PATCH v3 2/7] Input: dt-bindings: " Paweł Chmiel
2019-01-07 18:53 ` Paweł Chmiel [this message]
2019-01-07 18:53 ` [PATCH v3 4/7] Input: tm2-touchkey: Allow specifying custom keycodes Paweł Chmiel
2019-01-07 18:53 ` [PATCH v3 5/7] Input: dt-bindings: tm2-touchkey: Document new keycodes property Paweł Chmiel
2019-01-11 14:30   ` Rob Herring
2019-01-07 18:53 ` [PATCH v3 6/7] Input: tm2-touchkey: Add support for aries touchkey variant Paweł Chmiel
2019-01-07 18:53 ` [PATCH v3 7/7] Input: dt-bindings: tm2-touchkey: Add support for aries touchkey Paweł Chmiel
2019-01-07 19:53 ` [PATCH v3 0/7] Input: tm2-touchkey: Add support for Aries and Midas Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190107185346.30184-4-pawel.mikolaj.chmiel@gmail.com \
    --to=pawel.mikolaj.chmiel@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=simon@lineageos.org \
    --cc=xc-racer2@live.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).