From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: linux-kernel@vger.kernel.org,
patches@opensource.wolfsonmicro.com,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: [PATCH 2/7] mfd: Simplify WM832x subdevice instantiation
Date: Wed, 24 Nov 2010 18:01:40 +0000 [thread overview]
Message-ID: <1290621705-6926-2-git-send-email-broonie@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20101124180055.GO24970@rakim.wolfsonmicro.main>
All the current WM832x devices have the same set of subdevices so can
just use multiple case statements with a single body.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/mfd/wm831x-core.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c
index e1a2f4b..278f3a7 100644
--- a/drivers/mfd/wm831x-core.c
+++ b/drivers/mfd/wm831x-core.c
@@ -1606,17 +1606,7 @@ int wm831x_device_init(struct wm831x *wm831x, unsigned long id, int irq)
break;
case WM8320:
- ret = mfd_add_devices(wm831x->dev, -1,
- wm8320_devs, ARRAY_SIZE(wm8320_devs),
- NULL, 0);
- break;
-
case WM8321:
- ret = mfd_add_devices(wm831x->dev, -1,
- wm8320_devs, ARRAY_SIZE(wm8320_devs),
- NULL, 0);
- break;
-
case WM8325:
ret = mfd_add_devices(wm831x->dev, -1,
wm8320_devs, ARRAY_SIZE(wm8320_devs),
--
1.7.1
next prev parent reply other threads:[~2010-11-24 18:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 18:00 [PATCH 0/7] Wolfson MFD updates Mark Brown
2010-11-24 18:01 ` [PATCH 2.6.37 1/7] mfd: Supply IRQ base for WM832x devices Mark Brown
2010-11-24 18:01 ` Mark Brown [this message]
2010-11-24 18:01 ` [PATCH 3/7] mfd: Add WM8326 support Mark Brown
2010-11-24 18:01 ` [PATCH 4/7] mfd: Convert WM831x to new irq_ interrupt methods Mark Brown
2010-11-24 18:01 ` [PATCH 5/7] mfd: Convert WM835x " Mark Brown
2010-11-24 18:01 ` [PATCH 6/7] mfd: Convert WM8994 " Mark Brown
2010-11-24 18:01 ` [PATCH 7/7] mfd: Add initial WM8958 support Mark Brown
2010-11-26 14:05 ` [PATCH 0/7] Wolfson MFD updates Samuel Ortiz
2010-11-26 14:07 ` Mark Brown
2010-11-26 14:51 ` Samuel Ortiz
2010-11-26 15:18 ` Mark Brown
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=1290621705-6926-2-git-send-email-broonie@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.wolfsonmicro.com \
--cc=sameo@linux.intel.com \
/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