]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1307: add temperature sensor support for ds3231
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 24 Jan 2016 15:22:16 +0000 (00:22 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 4 Feb 2016 22:44:17 +0000 (23:44 +0100)
commit965bafad215a035bbf7fe86288982c812c29ce63
tree8d9923a5a96c0d4e2f573f24b545c3582f885b39
parente19b94a8459e3b8860704a66bdad3d8e7d70fc80
rtc: ds1307: add temperature sensor support for ds3231

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

# cat /sys/class/i2c-adapter/i2c-2/2-0068/hwmon/hwmon0/temp1_input
21000

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-ds1307.c