From: philippe.retornaz@epfl.ch (Philippe Rétornaz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] mc13xxx: implicitly register led subdevice
Date: Fri, 22 Jul 2011 16:17:08 +0200 [thread overview]
Message-ID: <1311344232-29902-3-git-send-email-philippe.retornaz@epfl.ch> (raw)
In-Reply-To: <1311344232-29902-2-git-send-email-philippe.retornaz@epfl.ch>
Signed-off-by: Philippe R?tornaz <philippe.retornaz@epfl.ch>
---
drivers/mfd/mc13xxx-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c
index c238f6b..2867c21 100644
--- a/drivers/mfd/mc13xxx-core.c
+++ b/drivers/mfd/mc13xxx-core.c
@@ -772,7 +772,7 @@ err_revision:
if (pdata->flags & MC13XXX_USE_TOUCHSCREEN)
mc13xxx_add_subdevice(mc13xxx, "%s-ts");
- if (pdata->flags & MC13XXX_USE_LED)
+ if (pdata->leds)
mc13xxx_add_subdevice_pdata(mc13xxx, "%s-led",
pdata->leds, sizeof(*pdata->leds));
--
1.6.3.3
next prev parent reply other threads:[~2011-07-22 14:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 14:17 [PATCH v6 0/6] mc13783: add pwr button support Philippe Rétornaz
2011-07-22 14:17 ` [PATCH 1/6] mc13xxx: Unconditionally register regulator subdevice Philippe Rétornaz
2011-07-22 14:17 ` Philippe Rétornaz [this message]
2011-07-22 14:17 ` [PATCH 3/6] mc13xxx: remove obsolete leds and regulators flags Philippe Rétornaz
2011-07-22 14:17 ` [PATCH 4/6] mc13xxx: remove unused define Philippe Rétornaz
2011-07-22 14:17 ` [PATCH 5/6] mc13783: add power button support Philippe Rétornaz
2011-07-22 14:17 ` [PATCH 6/6] mx31moboard: Add MC13783 " Philippe Rétornaz
2011-08-25 9:50 ` Sascha Hauer
2011-08-25 9:49 ` [PATCH 3/6] mc13xxx: remove obsolete leds and regulators flags Sascha Hauer
2011-07-24 3:44 ` [PATCH v6 0/6] mc13783: add pwr button support Shawn Guo
2011-07-25 6:49 ` Philippe Rétornaz
2011-07-25 7:13 ` Shawn Guo
2011-07-25 7:12 ` Wanlong Gao
2011-07-27 10:34 ` Samuel Ortiz
2011-08-03 7:17 ` Philippe Rétornaz
-- strict thread matches above, loose matches on Subject: below --
2011-07-21 18:04 [PATCH v5 " Philippe Rétornaz
2011-07-21 18:04 ` [PATCH 1/6] mc13xxx: Unconditionally register regulator subdevice Philippe Rétornaz
2011-07-21 18:04 ` [PATCH 2/6] mc13xxx: implicitly register led subdevice Philippe Rétornaz
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=1311344232-29902-3-git-send-email-philippe.retornaz@epfl.ch \
--to=philippe.retornaz@epfl.ch \
--cc=linux-arm-kernel@lists.infradead.org \
/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).