diff options
author | Guenter Roeck <linux@roeck-us.net> | 2018-03-26 19:50:31 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-03-27 08:49:24 -0700 |
commit | 415eb2a1aaa4881cf85bd86c683356fdd8094a23 (patch) | |
tree | 23a11a51405af48d7d778c636b6364b9cef8208d /drivers/media/cec | |
parent | 10ecacd7943b661ed1d365e6d1749edabc2b4721 (diff) | |
download | linux-415eb2a1aaa4881cf85bd86c683356fdd8094a23.tar.gz linux-415eb2a1aaa4881cf85bd86c683356fdd8094a23.tar.bz2 linux-415eb2a1aaa4881cf85bd86c683356fdd8094a23.zip |
hwmon: (nct6775) Fix writing pwmX_mode
pwmX_mode is defined in the ABI as 0=DC mode, 1=pwm mode. The chip
register bit is set to 1 for DC mode. This got mixed up, and writing
1 into pwmX_mode resulted in DC mode enabled. Fix it up by using
the ABI definition throughout the driver for consistency.
Fixes: 77eb5b3703d99 ("hwmon: (nct6775) Add support for pwm, pwm_mode, ... ")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/media/cec')
0 files changed, 0 insertions, 0 deletions