public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc-pcf8563: Add device ids table
@ 2008-04-17 15:08 Laurent Pinchart
       [not found] ` <200804171708.32847.laurentp-BSmb2szPELAwsLKNixborgC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Laurent Pinchart @ 2008-04-17 15:08 UTC (permalink / raw)
  To: rtc-linux-/JYPxA39Uh5TLH3MbocFFw; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA

Hi,

here's a patch against 2.6.25-rc8-mm2 that adds support for device tree names
to the rtc-pcf8563 driver.

Is the new-style driver conversion patch in 2.6.25-rc8-mm2 scheduled for
2.6.26 ?

--

This patch adds support for device tree names via the i2c mod alias mechanism
to the rtc-pcf8563 driver.

Signed-off-by: Laurent Pinchart <laurentp-BSmb2szPELAwsLKNixborgC/G2K4zDHf@public.gmane.org>
---
 drivers/rtc/rtc-pcf8563.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c
index a1e2f39..9667a3f 100644
--- a/drivers/rtc/rtc-pcf8563.c
+++ b/drivers/rtc/rtc-pcf8563.c
@@ -299,12 +299,20 @@ static int pcf8563_remove(struct i2c_client *client)
 	return 0;
 }
 
+static struct i2c_device_id pcf8563_id[] = {
+	{ "pcf8563", 0 },
+	{ "rtc8564", 0 },
+	{},
+};
+MODULE_DEVICE_TABLE(i2c, pcf8563_id);
+
 static struct i2c_driver pcf8563_driver = {
 	.driver		= {
 		.name	= "rtc-pcf8563",
 	},
 	.probe		= pcf8563_probe,
 	.remove		= pcf8563_remove,
+	.id_table	= pcf8563_id,
 };
 
 static int __init pcf8563_init(void)
-- 
1.5.0


-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

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

end of thread, other threads:[~2008-04-27 12:18 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17 15:08 [PATCH] rtc-pcf8563: Add device ids table Laurent Pinchart
     [not found] ` <200804171708.32847.laurentp-BSmb2szPELAwsLKNixborgC/G2K4zDHf@public.gmane.org>
2008-04-18 21:54   ` [rtc-linux] " Alessandro Zummo
     [not found]     ` <20080418235451.2643183b-1Z+4F8PJzVxlecnr3/Sf3RLwuzhV/fVh@public.gmane.org>
2008-04-19  9:34       ` Jean Delvare
     [not found]         ` <20080419113417.19f5567a-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-04-19 13:09           ` Jochen Friedrich
     [not found]             ` <4809EF23.7070902-NIgtFMG+Po8@public.gmane.org>
2008-04-19 14:23               ` Jean Delvare
     [not found]                 ` <20080419162358.746b714c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-04-19 16:43                   ` Jochen Friedrich
2008-04-21 11:56                     ` Laurent Pinchart
     [not found]                       ` <200804211356.10192.laurentp-BSmb2szPELAwsLKNixborgC/G2K4zDHf@public.gmane.org>
2008-04-21 12:12                         ` Stefan Roese
2008-04-23 11:09                           ` Jean Delvare
2008-04-23 11:35                             ` Stefan Roese
2008-04-23 11:45                               ` Jochen Friedrich
2008-04-22 14:11                     ` Laurent Pinchart
     [not found]                       ` <200804221612.06745.laurentp-BSmb2szPELAwsLKNixborgC/G2K4zDHf@public.gmane.org>
2008-04-23 11:16                         ` Jean Delvare
2008-04-23 12:12                           ` Laurent Pinchart
     [not found]                             ` <200804231412.40038.laurentp-BSmb2szPELAwsLKNixborgC/G2K4zDHf@public.gmane.org>
2008-04-23 12:47                               ` Jean Delvare
2008-04-23 13:26                                 ` Jochen Friedrich
2008-04-23 13:46                                   ` Jon Smirl
     [not found]                                   ` <480F390A.90707-NIgtFMG+Po8@public.gmane.org>
2008-04-27 12:18                                     ` Jean Delvare
2008-04-23 13:53                                 ` Laurent Pinchart
     [not found]                           ` <20080423131657.71d6312f-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-04-23 13:11                             ` Jon Smirl

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