[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10f740e80904191141i599af898wd47535cabd8c9184@mail.gmail.com>
Date: Sun, 19 Apr 2009 20:41:21 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Alessandro Zummo <alessandro.zummo@...ertech.it>
Cc: rtc-linux@...glegroups.com, linux-m68k@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [rtc-linux] [PATCH/RFC 15/16] rtc: Add an RTC driver for the
Ricoh RP5C01
Hi Alessandro,
On Sat, Apr 18, 2009 at 23:55, Alessandro Zummo
<alessandro.zummo@...ertech.it> wrote:
> On Sat, 18 Apr 2009 20:52:23 +0200 Geert Uytterhoeven <geert@...ux-m68k.org> wrote:
>
> Hi Geert, thanks for your contributions. Comments below.
>
> Missing patch description.
git-am is happy with the one-line summary in the subject:-line, and
there's not much more to say.
>> Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
>> Cc: rtc-linux@...glegroups.com
>> ---
>> drivers/rtc/Kconfig | 10 ++
>> drivers/rtc/Makefile | 1 +
>> drivers/rtc/rtc-rp5c01.c | 239 ++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 250 insertions(+), 0 deletions(-)
>> create mode 100644 drivers/rtc/rtc-rp5c01.c
>>
>> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
>> index a0f6297..150fe43 100644
>> --- a/drivers/rtc/Kconfig
>> +++ b/drivers/rtc/Kconfig
>> @@ -535,6 +535,16 @@ config RTC_DRV_MSM6242
>> This driver can also be built as a module. If so, the module
>> will be called rtc-msm6242.
>>
>> +config RTC_DRV_RP5C01
>> + tristate "Ricoh RP5C01"
>> + help
>> + If you say yes here you get support for the Ricoh RP5C01
>> + timekeeping chip. It is used in some Amiga models (e.g. A3000
>> + and A4000).
>> +
>> + This driver can also be built as a module. If so, the module
>> + will be called rtc-rp5c01.
>> +
>> comment "on-CPU RTC drivers"
>>
>> config RTC_DRV_OMAP
>> diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
>> index c70418b..6176a8a 100644
>> --- a/drivers/rtc/Makefile
>> +++ b/drivers/rtc/Makefile
>> @@ -77,4 +77,5 @@ obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o
>> obj-$(CONFIG_RTC_DRV_X1205) += rtc-x1205.o
>> obj-$(CONFIG_RTC_DRV_PCF50633) += rtc-pcf50633.o
>> obj-$(CONFIG_RTC_DRV_MSM6242) += rtc-msm6242.o
>> +obj-$(CONFIG_RTC_DRV_RP5C01) += rtc-rp5c01.o
>> obj-$(CONFIG_RTC_DRV_PS3) += rtc-ps3.o
>
> alphabetic order please
Will do.
>> +static const struct rtc_class_ops rp5c01_rtc_ops = {
>> + .read_time = rp5c01_read_time,
>> + .set_time = rp5c01_set_time,
>> + .set_mmss = rp5c01_set_mmss,
>> +};
>
> please implement either set_time or set_mmss, not both.
> I don't know the chip but I suspect set_time is the one you need.
OK, I will remove .set_mmss. Got to confused by looking into how
everything is used...
BTW, the only remaining users of rtc_set_mmss() seem to be
arch/sparc/kernel/time_{32,64}.c?
>> +MODULE_AUTHOR("Geert Uytterhoeven");
>
> it would be fine to have your email here.
Will do.
OK, if I take the result (for both rtc-rp5c01 and rtc-msm6242) through
the m68k tree?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists