Skip to content
Commit 0a19f129 authored by Ben Sen's avatar Ben Sen Committed by Greg Kroah-Hartman
Browse files

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: default avatarBen Sen <0.x29a.0@gmail.com>
Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae53e374
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment