]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e69c6e423e7a726d49c902272599fa709841e36
tree1f9121e8bf88d2dfe4cbc2e416920344fa7f07ca
parent1007932da54c247e57e23fc68e7a0068c0d77b6a
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