mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vishwanathrao Badarkhe, Manish" <manishv.b@ti.com>
To: <devicetree-discuss@lists.ozlabs.org>,
	<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<davinci-linux-open-source@linux.davincidsp.com>
Cc: <anilkumar@ti.com>, <tony@atomide.com>, <hs@denx.de>,
	<broonie@opensource.wolfsonmicro.com>, <lrg@ti.com>,
	<sameo@linux.intel.com>, <khilman@ti.com>,
	<linux@arm.linux.org.uk>, <rob@landley.net>,
	<rob.herring@calxeda.com>, <grant.likely@secretlab.ca>,
	<manishv.b@ti.com>
Subject: [PATCH 3/6] davinci: mfd: tps6507x: add device-tree support.
Date: Thu, 24 Jan 2013 16:25:17 +0530	[thread overview]
Message-ID: <1359024920-32190-4-git-send-email-manishv.b@ti.com> (raw)
In-Reply-To: <1359024920-32190-1-git-send-email-manishv.b@ti.com>

Add device tree based initialization support for TI's
tps6507x mfd device.

Signed-off-by: Vishwanathrao Badarkhe, Manish <manishv.b@ti.com>
---
 drivers/mfd/tps6507x.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/tps6507x.c b/drivers/mfd/tps6507x.c
index 409afa2..5ad4b77 100644
--- a/drivers/mfd/tps6507x.c
+++ b/drivers/mfd/tps6507x.c
@@ -19,6 +19,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
+#include <linux/of_device.h>
 #include <linux/mfd/core.h>
 #include <linux/mfd/tps6507x.h>
 
@@ -116,11 +117,19 @@ static const struct i2c_device_id tps6507x_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, tps6507x_i2c_id);
 
+#ifdef CONFIG_OF
+static struct of_device_id tps6507x_of_match[] = {
+	{.compatible = "ti,tps6507x", },
+	{},
+};
+MODULE_DEVICE_TABLE(of, tps6507x_of_match);
+#endif
 
 static struct i2c_driver tps6507x_i2c_driver = {
 	.driver = {
 		   .name = "tps6507x",
 		   .owner = THIS_MODULE,
+		   .of_match_table = of_match_ptr(tps6507x_of_match),
 	},
 	.probe = tps6507x_i2c_probe,
 	.remove = tps6507x_i2c_remove,
-- 
1.7.4.1


  parent reply	other threads:[~2013-01-24 10:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24 10:55 [PATCH 0/6] davinci: support for i2c0 and tps6507x Vishwanathrao Badarkhe, Manish
2013-01-24 10:55 ` [PATCH 1/6] ARM: davinci: da850: add OF_DEV_AUXDATA entry for I2C0 Vishwanathrao Badarkhe, Manish
2013-01-24 10:55 ` Vishwanathrao Badarkhe, Manish [this message]
2013-01-24 10:55 ` [PATCH 4/6] davinci: regulator: tps6507x: add device tree support Vishwanathrao Badarkhe, Manish
2013-01-27  3:19   ` Mark Brown
2013-01-24 10:55 ` [PATCH 5/6] ARM: regulator: add tps6507x device tree data Vishwanathrao Badarkhe, Manish
2013-01-24 12:00   ` Mark Brown
2013-01-25  6:29     ` Vishwanathrao Badarkhe, Manish
2013-01-26  5:12       ` Mark Brown
2013-01-28  5:01         ` Vishwanathrao Badarkhe, Manish
2013-01-24 10:55 ` [PATCH 6/6] ARM: davinci: da850: add tps6507x regulator DT data Vishwanathrao Badarkhe, Manish

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=1359024920-32190-4-git-send-email-manishv.b@ti.com \
    --to=manishv.b@ti.com \
    --cc=anilkumar@ti.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=hs@denx.de \
    --cc=khilman@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lrg@ti.com \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=sameo@linux.intel.com \
    --cc=tony@atomide.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

all inboxes | Powered by JetHome®