• Jesper Nilsson's avatar
    CRIS v10: Update driver for pcf8563 · 34a8e501
    Jesper Nilsson authored
    - Use mutex instead of spinlock, fixes kernel bugzilla report 8339.
    - Make sure that pcf8563_init can be called multiple times but only setup once.
    - Change RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR
    - Cache the voltage low value at driver init so the battery status
      information does not get 'accidentally' cleared when setting the RTC time.
    - Add weekday handling.
    - Correct leapyear handling to include 100 and 400 year exceptions.
    - Correct whitespace and formatting errors.
    - Remove useless CVS id tag.
    34a8e501
pcf8563.c 8.2 KB