public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] i2c drivers fixes
@ 2008-05-13 12:22 Felipe Balbi
  2008-05-13 12:22 ` [PATCH 1/4] I2C: TSL2563: Add i2c_device_id Felipe Balbi
  2008-05-14 22:26 ` [PATCH 0/4] i2c drivers fixes Tony Lindgren
  0 siblings, 2 replies; 6+ messages in thread
From: Felipe Balbi @ 2008-05-13 12:22 UTC (permalink / raw)
  To: linux-omap; +Cc: Felipe Balbi

Basically add i2c_device_id and fix some warnings.

Felipe Balbi (4):
  I2C: TSL2563: Add i2c_device_id
  I2C: LP5521: Add i2c_device_id
  I2C: RADIO: TEA5761: Add i2c_device_id
  I2C: Get rid of warnings

 drivers/i2c/chips/lp5521.c          |   11 +++++++++--
 drivers/i2c/chips/tsl2563.c         |   11 +++++++++--
 drivers/input/keyboard/lm8323.c     |    2 +-
 drivers/media/radio/radio-tea5761.c |   11 +++++++++--
 4 files changed, 28 insertions(+), 7 deletions(-)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] I2C: TSL2563: Add i2c_device_id
  2008-05-13 12:22 [PATCH 0/4] i2c drivers fixes Felipe Balbi
@ 2008-05-13 12:22 ` Felipe Balbi
  2008-05-13 12:22   ` [PATCH 2/4] I2C: LP5521: " Felipe Balbi
  2008-05-14 22:26 ` [PATCH 0/4] i2c drivers fixes Tony Lindgren
  1 sibling, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2008-05-13 12:22 UTC (permalink / raw)
  To: linux-omap; +Cc: Felipe Balbi

Add i2c_device_id to tsl2563.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
 drivers/i2c/chips/tsl2563.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/chips/tsl2563.c b/drivers/i2c/chips/tsl2563.c
index cf2e313..b39b65c 100644
--- a/drivers/i2c/chips/tsl2563.c
+++ b/drivers/i2c/chips/tsl2563.c
@@ -595,7 +595,8 @@ static void tsl2563_unregister_sysfs(struct i2c_client *client)
 /*--------------------------------------------------------------*/
 static struct i2c_driver tsl2563_i2c_driver;
 
-static int tsl2563_probe(struct i2c_client *client)
+static int tsl2563_probe(struct i2c_client *client,
+		const struct i2c_device_id *device_id)
 {
 	struct tsl2563_chip *chip;
 	int err = 0;
@@ -703,6 +704,12 @@ out:
 	return ret;
 }
 
+static const struct i2c_device_id tsl2563_id[] = {
+	{ DRIVER_NAME, 0 },
+	{ },
+};
+MODULE_DEVICE_TABLE(i2c, tsl2563_id);
+
 static struct i2c_driver tsl2563_i2c_driver = {
 	.driver = {
 		.name	 = DRIVER_NAME,
-- 
1.5.5.1.125.gc697a


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] I2C: LP5521: Add i2c_device_id
  2008-05-13 12:22 ` [PATCH 1/4] I2C: TSL2563: Add i2c_device_id Felipe Balbi
@ 2008-05-13 12:22   ` Felipe Balbi
  2008-05-13 12:22     ` [PATCH 3/4] I2C: RADIO: TEA5761: " Felipe Balbi
  0 siblings, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2008-05-13 12:22 UTC (permalink / raw)
  To: linux-omap; +Cc: Felipe Balbi

Add i2c_device_id to lp5521 driver.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
 drivers/i2c/chips/lp5521.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/chips/lp5521.c b/drivers/i2c/chips/lp5521.c
index d1803a9..4d869f9 100644
--- a/drivers/i2c/chips/lp5521.c
+++ b/drivers/i2c/chips/lp5521.c
@@ -503,7 +503,8 @@ static int lp5521_set_mode(struct lp5521_chip *chip, char *mode)
 /*--------------------------------------------------------------*/
 static struct i2c_driver lp5521_driver;
 
-static int lp5521_probe(struct i2c_client *client)
+static int lp5521_probe(struct i2c_client *client,
+		const struct i2c_device_id *id)
 {
 	struct lp5521_chip *chip;
 	int ret = 0;
@@ -551,6 +552,12 @@ static int lp5521_remove(struct i2c_client *client)
 	return 0;
 }
 
+static const struct i2c_device_id lp5521_id[] = {
+	{ LP5521_DRIVER_NAME, 0},
+	{ },
+};
+MODULE_DEVICE_TABLE(i2c, lp5521_id);
+
 static struct i2c_driver lp5521_driver = {
 	.driver = {
 		.name	= LP5521_DRIVER_NAME,
-- 
1.5.5.1.125.gc697a


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] I2C: RADIO: TEA5761: Add i2c_device_id
  2008-05-13 12:22   ` [PATCH 2/4] I2C: LP5521: " Felipe Balbi
@ 2008-05-13 12:22     ` Felipe Balbi
  2008-05-13 12:22       ` [PATCH 4/4] I2C: Get rid of warnings Felipe Balbi
  0 siblings, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2008-05-13 12:22 UTC (permalink / raw)
  To: linux-omap; +Cc: Felipe Balbi

Add i2c_device_id to tea5761.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
 drivers/media/radio/radio-tea5761.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/drivers/media/radio/radio-tea5761.c b/drivers/media/radio/radio-tea5761.c
index 0fb0cdc..8a0cf42 100644
--- a/drivers/media/radio/radio-tea5761.c
+++ b/drivers/media/radio/radio-tea5761.c
@@ -413,7 +413,8 @@ static struct video_device tea5761_video_device = {
 	.release       = video_device_release
 };
 
-static int tea5761_i2c_driver_probe(struct i2c_client *client)
+static int tea5761_i2c_driver_probe(struct i2c_client *client,
+		const struct i2c_device_id *id)
 {
 	struct video_device *video_dev;
 	int err = 0;
@@ -472,6 +473,12 @@ static int tea5761_i2c_driver_remove(struct i2c_client *client)
 	return 0;
 }
 
+static const struct i2c_device_id tea5761_id[] = {
+	{ DRIVER_NAME, 0 },
+	{ },
+};
+MODULE_DEVICE_TABLE(i2c, tea5761_id);
+
 static struct i2c_driver tea5761_driver = {
 	.driver = {
 		.name	= DRIVER_NAME,
-- 
1.5.5.1.125.gc697a


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] I2C: Get rid of warnings
  2008-05-13 12:22     ` [PATCH 3/4] I2C: RADIO: TEA5761: " Felipe Balbi
@ 2008-05-13 12:22       ` Felipe Balbi
  0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2008-05-13 12:22 UTC (permalink / raw)
  To: linux-omap; +Cc: Felipe Balbi

Remove warnings from three i2c drivers.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
 drivers/i2c/chips/lp5521.c          |    2 +-
 drivers/i2c/chips/tsl2563.c         |    2 +-
 drivers/input/keyboard/lm8323.c     |    2 +-
 drivers/media/radio/radio-tea5761.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/i2c/chips/lp5521.c b/drivers/i2c/chips/lp5521.c
index 4d869f9..254d555 100644
--- a/drivers/i2c/chips/lp5521.c
+++ b/drivers/i2c/chips/lp5521.c
@@ -563,7 +563,7 @@ static struct i2c_driver lp5521_driver = {
 		.name	= LP5521_DRIVER_NAME,
 	},
 	.probe		= lp5521_probe,
-	.remove		= __exit_p(lp5521_remove),
+	.remove		= __devexit_p(lp5521_remove),
 };
 
 static int __init lp5521_init(void)
diff --git a/drivers/i2c/chips/tsl2563.c b/drivers/i2c/chips/tsl2563.c
index b39b65c..bc58106 100644
--- a/drivers/i2c/chips/tsl2563.c
+++ b/drivers/i2c/chips/tsl2563.c
@@ -717,7 +717,7 @@ static struct i2c_driver tsl2563_i2c_driver = {
 	.suspend	= tsl2563_suspend,
 	.resume		= tsl2563_resume,
 	.probe		= tsl2563_probe,
-	.remove		= __exit_p(tsl2563_remove),
+	.remove		= __devexit_p(tsl2563_remove),
 };
 
 static int __init tsl2563_init(void)
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c
index d345a3a..e793ae7 100644
--- a/drivers/input/keyboard/lm8323.c
+++ b/drivers/input/keyboard/lm8323.c
@@ -894,7 +894,7 @@ static struct i2c_driver lm8323_i2c_driver = {
 		.name	 = DRIVER_NAME,
 	},
 	.probe		= lm8323_probe,
-	.remove		= __exit_p(lm8323_remove),
+	.remove		= __devexit_p(lm8323_remove),
 	.suspend	= lm8323_suspend,
 	.resume		= lm8323_resume,
 	.id_table	= lm8323_id,
diff --git a/drivers/media/radio/radio-tea5761.c b/drivers/media/radio/radio-tea5761.c
index 8a0cf42..34fcd3a 100644
--- a/drivers/media/radio/radio-tea5761.c
+++ b/drivers/media/radio/radio-tea5761.c
@@ -484,7 +484,7 @@ static struct i2c_driver tea5761_driver = {
 		.name	= DRIVER_NAME,
 	},
 	.probe	= tea5761_i2c_driver_probe,
-	.remove = tea5761_i2c_driver_remove,
+	.remove = __devexit_p(tea5761_i2c_driver_remove),
 };
 
 static int __init tea5761_init(void)
-- 
1.5.5.1.125.gc697a


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] i2c drivers fixes
  2008-05-13 12:22 [PATCH 0/4] i2c drivers fixes Felipe Balbi
  2008-05-13 12:22 ` [PATCH 1/4] I2C: TSL2563: Add i2c_device_id Felipe Balbi
@ 2008-05-14 22:26 ` Tony Lindgren
  1 sibling, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2008-05-14 22:26 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-omap

* Felipe Balbi <felipe.balbi@nokia.com> [080513 05:24]:
> Basically add i2c_device_id and fix some warnings.
> 
> Felipe Balbi (4):
>   I2C: TSL2563: Add i2c_device_id
>   I2C: LP5521: Add i2c_device_id
>   I2C: RADIO: TEA5761: Add i2c_device_id
>   I2C: Get rid of warnings
> 
>  drivers/i2c/chips/lp5521.c          |   11 +++++++++--
>  drivers/i2c/chips/tsl2563.c         |   11 +++++++++--
>  drivers/input/keyboard/lm8323.c     |    2 +-
>  drivers/media/radio/radio-tea5761.c |   11 +++++++++--
>  4 files changed, 28 insertions(+), 7 deletions(-)
> 

Pushing today.

Tony

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-14 22:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 12:22 [PATCH 0/4] i2c drivers fixes Felipe Balbi
2008-05-13 12:22 ` [PATCH 1/4] I2C: TSL2563: Add i2c_device_id Felipe Balbi
2008-05-13 12:22   ` [PATCH 2/4] I2C: LP5521: " Felipe Balbi
2008-05-13 12:22     ` [PATCH 3/4] I2C: RADIO: TEA5761: " Felipe Balbi
2008-05-13 12:22       ` [PATCH 4/4] I2C: Get rid of warnings Felipe Balbi
2008-05-14 22:26 ` [PATCH 0/4] i2c drivers fixes Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox