hwmon: (adc128d818) Support operation modes 1-3
authorAlexander Koch <mail@alexanderkoch.net>
Fri, 6 Jan 2017 10:38:16 +0000 (11:38 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Jan 2017 17:11:41 +0000 (09:11 -0800)
commit4e1796c892136f9a020f629da39076afd6b50429
tree829895dceb80d11104c565b689f6e8aac1879dde
parenta45923c27de4a101e846795d76420936b62bb659
hwmon: (adc128d818) Support operation modes 1-3

Add support for operation modes 1-3 of the ADC128D818 (see datasheet sec.
8.4.1). These differ in the number and type of the available input signals,
requiring the driver to selectively hide sysfs nodes according to the
operation mode configured via devicetree.

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