]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (adc128d818) Implement mode selection via dt
authorAlexander Koch <mail@alexanderkoch.net>
Fri, 6 Jan 2017 10:38:15 +0000 (11:38 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Jan 2017 17:09:18 +0000 (09:09 -0800)
commita45923c27de4a101e846795d76420936b62bb659
tree4132db967da4675683994834d94dda5de105a5f4
parentbbcf37d73c2d3b4fa1a5781c992289b9a90c1480
hwmon: (adc128d818) Implement mode selection via dt

Implement operation mode selection using the optional 'ti,mode' devicetree
property (see [1]). The ADC128D818 supports four operation modes differing
in the number and type of input readings (see datasheet, sec. 8.4.1), of
which mode 0 is the default.

We only add handling of the 'ti,mode' property here, the driver still
supports nothing else than the default mode 0.

[1] Documentation/devicetree/bindings/hwmon/adc128d818.txt

Signed-off-by: Alexander Koch <mail@alexanderkoch.net>
Acked-by: Michael Hornung <mhornung.linux@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adc128d818.c