From: Rhyland Klein <rklein@nvidia.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
<linux-kernel@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
Rhyland Klein <rklein@nvidia.com>
Subject: [Patch V4 2/2] mfd: tps65090: Add resources for charger
Date: Thu, 21 Mar 2013 16:30:42 -0400 [thread overview]
Message-ID: <1363897842-19835-2-git-send-email-rklein@nvidia.com> (raw)
In-Reply-To: <1363897842-19835-1-git-send-email-rklein@nvidia.com>
Add irq resources to pass to the charger mfd sub dev so
the charger can listen for interrupts.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
---
v4:
- Added of_compatible string to resources for tps65090-charger
v3:
- no changes since v2
v2:
- no changes since v1
drivers/mfd/tps65090.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index 98edb5be..fbd6ee6 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -56,12 +56,23 @@
#define TPS65090_INT2_MASK_OVERLOAD_FET6 6
#define TPS65090_INT2_MASK_OVERLOAD_FET7 7
+static struct resource charger_resources[] = {
+ {
+ .start = TPS65090_IRQ_VAC_STATUS_CHANGE,
+ .end = TPS65090_IRQ_VAC_STATUS_CHANGE,
+ .flags = IORESOURCE_IRQ,
+ }
+};
+
static struct mfd_cell tps65090s[] = {
{
.name = "tps65090-pmic",
},
{
.name = "tps65090-charger",
+ .num_resources = ARRAY_SIZE(charger_resources),
+ .resources = &charger_resources[0],
+ .of_compatible = "ti,tps65090-charger",
},
};
--
1.7.9.5
next prev parent reply other threads:[~2013-03-21 20:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 20:30 [Patch V4 1/2] mfd: tps65090: Fix enum in header file Rhyland Klein
2013-03-21 20:30 ` Rhyland Klein [this message]
2013-04-08 16:01 ` [Patch V4 2/2] mfd: tps65090: Add resources for charger Samuel Ortiz
2013-04-10 17:14 ` Rhyland Klein
2013-04-08 16:01 ` [Patch V4 1/2] mfd: tps65090: Fix enum in header file Samuel Ortiz
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=1363897842-19835-2-git-send-email-rklein@nvidia.com \
--to=rklein@nvidia.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--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