rtc: isl12022: add support for temperature sensor
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 4 Nov 2022 11:02:25 +0000 (12:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Nov 2022 20:01:51 +0000 (21:01 +0100)
commit8d816c1eaa752546fa3221f5027af0a667ff0c8f
tree26d7b3ced5b0bf31e8ae37a8f8704dca982f3a99
parentf8513363b0b7155afaee09cca777fc608dc957e3
rtc: isl12022: add support for temperature sensor

The isl12022 has built-in temperature compensation effective over the
range -40C to +85C. It exposes the average of the last two temperature
measurements as a 10-bit value in half-Kelvins. Make this available
via the hwmon framework.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20221104110225.2219761-1-linux@rasmusvillemoes.dk
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12022.c