rtc: ds3232: add temperature support
authorKirill Esipov <yesipov@gmail.com>
Wed, 28 Jun 2017 11:29:09 +0000 (14:29 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 20:37:16 +0000 (22:37 +0200)
commitc35c4195f919a077ce106ec84cfcecbb0b67db30
tree1f9121e8bf88d2dfe4cbc2e416920344fa7f07ca
parentd0a67c372df410b579197ea818596001fe20070d
rtc: ds3232: add temperature support

DS3232/DS3234 has the temperature registers with a resolution of 0.25
degree celsius. This enables to get the value through hwmon.

# cat /sys/class/hwmon/hwmon0/temp1_input
37250

Signed-off-by: Kirill Esipov <yesipov@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-ds3232.c