linux-stable/drivers/w1/slaves
Julien Folly 4ab1594e69 w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size).
[ Upstream commit 6eaafbb699 ]

IAD Register is yet readable trough the "iad" sys file.

A write to the "iad" sys file enables or disables the current
measurement, but it was not possible to get the measured value by
reading it.
Fix: %u in snprintf for unsigned values (vdd and vad)
Fix: Avoid possibles overflows (Usage of the 'count' variables)

Signed-off-by: Julien Folly <julien.folly@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-01 09:16:22 +01:00
..
Kconfig power: supply: ds2760_battery: merge ds2760 supply driver with its w1 slave companion 2018-07-11 18:09:09 +02:00
Makefile power: supply: ds2760_battery: merge ds2760 supply driver with its w1 slave companion 2018-07-11 18:09:09 +02:00
w1_ds28e04.c
w1_ds28e17.c
w1_ds2405.c
w1_ds2406.c
w1_ds2408.c
w1_ds2413.c
w1_ds2423.c
w1_ds2431.c
w1_ds2433.c
w1_ds2438.c w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2019-12-01 09:16:22 +01:00
w1_ds2780.c
w1_ds2780.h
w1_ds2781.c
w1_ds2781.h
w1_ds2805.c
w1_smem.c
w1_therm.c