]> git.baikalelectronics.ru Git - kernel.git/commit
rtc/ab8500: add calibration attribute to AB8500 RTC
authorMark Godfrey <mark.godfrey@stericsson.com>
Tue, 10 Jan 2012 23:10:42 +0000 (15:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:52 +0000 (16:30 -0800)
commitc1fe4e9a50dd6ca37256ac10d491343a94aa16bc
tree332b14ebfc6340c6941be7ec64250093ee631f3d
parent42f50918677b5e0dc1bcc45cd1da99448d079463
rtc/ab8500: add calibration attribute to AB8500 RTC

The rtc_calibration attribute allows user-space to get and set the
AB8500's RtcCalibration register.  The AB8500 will then use the value in
this register to compensate for RTC drift every 60 seconds.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Mark Godfrey <mark.godfrey@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/ABI/testing/sysfs-class-rtc-rtc0-device-rtc_calibration [new file with mode: 0644]
drivers/rtc/rtc-ab8500.c