[PATCH 1/6] rtc: ds1307: Add code to support ds1337/1341
Antony Pavlov
antonynpavlov at gmail.com
Wed Jan 6 22:51:15 PST 2016
On Wed, 6 Jan 2016 22:17:30 -0800
Andrey Smirnov <andrew.smirnov at gmail.com> wrote:
> Port DS1337 specific bits from corresponding Linux driver and add
> small changes needed for DS1341.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
> ---
> drivers/rtc/rtc-ds1307.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 91 insertions(+)
>
> diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
> index d78faa8..2b46ae5 100644
> --- a/drivers/rtc/rtc-ds1307.c
> +++ b/drivers/rtc/rtc-ds1307.c
...
> @@ -263,6 +299,61 @@ static int ds1307_probe(struct device_d *dev)
> ds1307->read_block_data = ds1307_read_block_data;
> ds1307->write_block_data = ds1307_write_block_data;
>
> +
Extra empty line here.
> + switch (ds1307->type) {
> + case ds_1337:
> + case ds_1341:
...
--
Best regards,
Antony Pavlov
More information about the barebox
mailing list