[i2c] [PATCH] i2c: Deprecate legacy RTC drivers

Alessandro Zummo alessandro.zummo at towertech.it
Fri May 11 18:34:55 CEST 2007


On Fri, 11 May 2007 17:22:52 +0100
James Chapman <jchapman at katalix.com> wrote:

> Perhaps the radstone_ppc7d platform code should use rtc_read_time() and 
> rtc_set_time() instead? Is it possible for platform code to obtain the 
> rtc's struct class_device which are needed by those calls?
> 

 rtc_class_open/close can be used to obtain the class_device .
 see drivers/rtc/hctosys.c for details.

 my suggestion would be to move the radstone to arch/powerppc which,
 iirc, doesn't do any rtc trick.

 
-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it




More information about the i2c mailing list