All of lore.kernel.org
 help / color / mirror / Atom feed
* rtc_[gs]et_time()
@ 2003-04-15  9:02 Geert Uytterhoeven
  2003-04-15  9:09 ` rtc_[gs]et_time() Brian Murphy
  2003-04-15 18:33 ` rtc_[gs]et_time() Jun Sun
  0 siblings, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2003-04-15  9:02 UTC (permalink / raw)
  To: Linux/MIPS Development

	Hi,

Is there any specific reason why the function pointers rtc_[gs]et_time() use
seconds instead of struct rtc_time? Most RTCs store the date and time in a
format similar to struct rtc_time, so they have to convert from seconds to
struct rtc_time again. I found only 2 exceptions, namely the vr4181 RTC and the
Lasat ds1630 RTC (BTW, I found no RTC driver for vr41xx, since
vr41xx_rtc_get_time() is nowhere defined).

This makes it more complex to make drivers/char/genrtc.c work on MIPS, since 
usually the date and time have to be converted twice: once from struct rtc_time
to seconds in <asm/rtc.h>, and once from seconds to struct rtc_time in each RTC
driver.

Is it OK to make rtc_[gs]et_time() always use struct rtc_time?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-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

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

end of thread, other threads:[~2003-04-15 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-15  9:02 rtc_[gs]et_time() Geert Uytterhoeven
2003-04-15  9:09 ` rtc_[gs]et_time() Brian Murphy
2003-04-15  9:12   ` rtc_[gs]et_time() Ladislav Michl
2003-04-15 12:52     ` rtc_[gs]et_time() Maciej W. Rozycki
2003-04-15 18:33 ` rtc_[gs]et_time() Jun Sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.