hwmon: (pwm-fan) Read PWM FAN configuration from device tree
authorLukasz Majewski <l.majewski@samsung.com>
Thu, 26 Feb 2015 13:59:36 +0000 (14:59 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2015 16:59:36 +0000 (09:59 -0700)
commit2e5219c77183be47eb9ae4b1a4195e008d196c73
treee4401ed00f312bb3a6ee8ce188c89b1b46b5bfd5
parentcb85ca332f4d72ca68464c55f63af0387f6bbdb1
hwmon: (pwm-fan) Read PWM FAN configuration from device tree

This patch provides code for reading PWM FAN configuration data via
device tree. The pwm-fan can work with full speed when configuration
is not provided. However, errors are propagated when wrong DT bindings
are found.
Additionally the struct pwm_fan_ctx has been extended.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c