]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
CRIS v32: Update driver for RTC chip pcf8563.
authorJesper Nilsson <jesper.nilsson@axis.com>
Thu, 24 Jan 2008 13:24:09 +0000 (14:24 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:34 +0000 (11:06 +0100)
commit7edf744053873e390d7d05ab0136c5162cf89c27
tree3c6da49d72f829b3a1c782fb2acd9e274b0704b3
parentd8ac17a0eeab6580cced355de85ac90227096bb9
CRIS v32: Update driver for RTC chip pcf8563.

- Moved all calls to register_chrdev to a function called by module_init.
- Added mutex locking.
- Added better error handling at start up.
- Added BIN_TO_BCD of the month value before it is saved to the RTC.
- Corrected the month value returned by pcf8563_readreg.
- Cache the voltage low value at driver init so the battery status
  information does not get 'accidentally' cleared when setting the RTC time.
- Removed obsolete CONFIG_ETRAX_RTC_READONLY
- Voltage low ioctl():s RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR
arch/cris/arch-v32/drivers/pcf8563.c