w1: ds2438: adding support for reading page1
authorLuiz Sampaio <sampaio.ime@gmail.com>
Wed, 19 May 2021 22:30:45 +0000 (19:30 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 12:51:33 +0000 (14:51 +0200)
commitfd6ec5d79507f99639c94f107e8a98550c9e1cf6
tree6f2c945283a8a2c9e67e7b6968566d2099a0fac6
parent1f5e7518f063728aee0679c5086b92d8ea429e11
w1: ds2438: adding support for reading page1

Added a sysfs entry to support reading the page1 registers. This registers
contain Elapsed Time Meter (ETM) data, which shows for how long the chip is
on, as well as an Offset Register data, which can be used to calibrate the
current measurement of the chip.

Signed-off-by: Luiz Sampaio <sampaio.ime@gmail.com>
Link: https://lore.kernel.org/r/20210519223046.13798-6-sampaio.ime@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-driver-w1_ds2438 [new file with mode: 0644]
Documentation/w1/slaves/w1_ds2438.rst
drivers/w1/slaves/w1_ds2438.c