mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] rtc: ds1307: Add ds1308 to driver's ID list
@ 2016-05-19 23:37 Trent Piepho
  2016-05-23  6:31 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Trent Piepho @ 2016-05-19 23:37 UTC (permalink / raw)
  To: barebox

As far as the driver is concerned, it's the same as a 1338.  It's too
bad the i2c drivers can't make use of OF compatible properties with a
list of compatible devices.

Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
---
 drivers/rtc/rtc-ds1307.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 726586a..ca630ea 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -106,6 +106,7 @@ struct ds1307 {
 static struct platform_device_id ds1307_id[] = {
 	{ "ds1307", ds_1307 },
 	{ "ds1337", ds_1337 },
+	{ "ds1308", ds_1338 }, /* Difference 1308 to 1338 irrelevant */
 	{ "ds1338", ds_1338 },
 	{ "ds1341", ds_1341 },
 	{ "pt7c4338", ds_1307 },
-- 
2.7.0.25.gfc10eb5.dirty


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/2] rtc: ds1307: Add ds1308 to driver's ID list
  2016-05-19 23:37 [PATCH 1/2] rtc: ds1307: Add ds1308 to driver's ID list Trent Piepho
@ 2016-05-23  6:31 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2016-05-23  6:31 UTC (permalink / raw)
  To: Trent Piepho; +Cc: barebox

On Thu, May 19, 2016 at 11:37:38PM +0000, Trent Piepho wrote:
> As far as the driver is concerned, it's the same as a 1338.  It's too
> bad the i2c drivers can't make use of OF compatible properties with a
> list of compatible devices.
> 
> Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>

Applied, thanks

Sascha

> ---
>  drivers/rtc/rtc-ds1307.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
> index 726586a..ca630ea 100644
> --- a/drivers/rtc/rtc-ds1307.c
> +++ b/drivers/rtc/rtc-ds1307.c
> @@ -106,6 +106,7 @@ struct ds1307 {
>  static struct platform_device_id ds1307_id[] = {
>  	{ "ds1307", ds_1307 },
>  	{ "ds1337", ds_1337 },
> +	{ "ds1308", ds_1338 }, /* Difference 1308 to 1338 irrelevant */
>  	{ "ds1338", ds_1338 },
>  	{ "ds1341", ds_1341 },
>  	{ "pt7c4338", ds_1307 },
> -- 
> 2.7.0.25.gfc10eb5.dirty
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2016-05-23  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-19 23:37 [PATCH 1/2] rtc: ds1307: Add ds1308 to driver's ID list Trent Piepho
2016-05-23  6:31 ` Sascha Hauer

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