From: Felix Brack <fb@ltec.ch>
To: riku.voipio@iki.fi, linux-leds@vger.kernel.org
Cc: "rpurdie@rpsys.net" <rpurdie@rpsys.net>,
j.anaszewski@samsung.com, linux-kernel@vger.kernel.org,
Brack Felix <fb@ltec.ch>
Subject: [PATCH] led: pca9532: Use default trigger value from platform data
Date: Wed, 26 Oct 2016 16:08:02 +0200 [thread overview]
Message-ID: <2ba1ca4c-23c5-fb0e-10ce-4e25edcd197f@ltec.ch> (raw)
The value for a led's default_trigger should come from platform data
instead of data (which is always 0).
Signed-off-by: Felix Brack <fb@ltec.ch>
---
diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c
index 09a7cffb..06e6310 100644
--- a/drivers/leds/leds-pca9532.c
+++ b/drivers/leds/leds-pca9532.c
@@ -369,7 +369,7 @@ static int pca9532_configure(struct i2c_client *client,
led->state = pled->state;
led->name = pled->name;
led->ldev.name = led->name;
- led->ldev.default_trigger = led->default_trigger;
+ led->ldev.default_trigger = pled->default_trigger;
led->ldev.brightness = LED_OFF;
led->ldev.brightness_set_blocking =
pca9532_set_brightness;
next reply other threads:[~2016-10-26 14:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20161026140813eucas1p2bd4e4dc825badc0538f8d074056444c2@eucas1p2.samsung.com>
2016-10-26 14:08 ` Felix Brack [this message]
2016-10-26 14:45 ` Jacek Anaszewski
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=2ba1ca4c-23c5-fb0e-10ce-4e25edcd197f@ltec.ch \
--to=fb@ltec.ch \
--cc=j.anaszewski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=riku.voipio@iki.fi \
--cc=rpurdie@rpsys.net \
/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
all inboxes | Powered by JetHome®