Dear Wolfram,

Though register-set looks identical but features were different. And also 
manufacturer is different.
But still it might be possible that we can reuse ds1307.c with some 
modification.
But if I look at the drivers present in drivers/rtc folder. Most of them looks 
similar but still there are different drivers for different chips.

Please suggest which way is more preferred: modifying existing drivers(of 
different manufacturer) or writing new driver. 

Thanks
Priyanka

> -----Original Message-----
> From: Wolfram Sang [mailto:w.s...@pengutronix.de]
> Sent: Thursday, March 03, 2011 2:53 PM
> To: rtc-li...@googlegroups.com
> Cc: linuxppc-dev@lists.ozlabs.org; a.zu...@towertech.it;
> p_gortma...@yahoo.com; a...@linux-foundation.org; Jain Priyanka-B32167
> Subject: Re: [rtc-linux] [PATCH] RTC driver(Linux) for PT7C4338 chip.
> 
> Hi,
> 
> > +/*
> > + * This file provides Date & Time support (no alarms) for PT7C4338
> chip.
> > + *
> > + * This file is based on drivers/rtc/rtc-ds1307.c
> 
> Please explain why you can't use rtc-ds1307 directly (or with slight
> modifications). I might have missed something but the register-set looks
> identical to me?
> 
> Regards,
> 
>    Wolfram
> 
> --
> Pengutronix e.K.                           | Wolfram Sang
> |
> Industrial Linux Solutions                 | http://www.pengutronix.de/
> |

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to