w1: add ability to set (SRAM) and store (EEPROM) configuration for temp sensors like...
authorBen Sen <0.x29a.0@gmail.com>
Sun, 1 May 2016 21:23:33 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 21:37:49 +0000 (14:37 -0700)
commit0a19f129d71f18e73249d54de96c835186b8607e
tree70932d81781981285d03768deaf0bc8fb4cfd36b
parentae53e3740036b5350c4a10dc6fd00fbe3f5134ff
w1: add ability to set (SRAM) and store (EEPROM) configuration for temp sensors like DS18B20

Since many temperature sensors come "preconfigured" with a lower
precision, people are stuck at that precision when running on a kernel
based device (unlike the Dallas 1Wire library for e.g. Arduino, which
supports writing the configuration/scratchpad). This patch adds write
support for the scratchpad/precision registers via w1_slave sysfs.

Signed-off-by: Ben Sen <0.x29a.0@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/w1/slaves/w1_therm
drivers/w1/slaves/w1_therm.c
drivers/w1/w1.h