[PATCH v2 09/20] rtc: omap: add device abstraction

2014-10-21 Thread Johan Hovold
Add struct omap_rtc to hold previously global data as well as the IP-block feature flags. Also convert the register-access macros to proper inline helper functions. Signed-off-by: Johan Hovold --- drivers/rtc/rtc-omap.c | 239 +++-- 1 file changed,

[PATCH v2 09/20] rtc: omap: add device abstraction

2014-10-21 Thread Johan Hovold
Add struct omap_rtc to hold previously global data as well as the IP-block feature flags. Also convert the register-access macros to proper inline helper functions. Signed-off-by: Johan Hovold jo...@kernel.org --- drivers/rtc/rtc-omap.c | 239 +++-- 1