diff options
| author | Vishwas M <[email protected]> | 2020-07-07 14:27:47 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2020-07-07 14:54:32 +0000 |
| commit | 14b0e83dc4f1e52b94acaeb85a18fd7fdd46d2dc (patch) | |
| tree | e56ea91e623969100188556b572cb031bff6a051 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | hwmon: (amd_energy) match for supported models (diff) | |
| download | kernel-14b0e83dc4f1e52b94acaeb85a18fd7fdd46d2dc.tar.gz kernel-14b0e83dc4f1e52b94acaeb85a18fd7fdd46d2dc.zip | |
hwmon: (emc2103) fix unable to change fan pwm1_enable attribute
This patch fixes a bug which does not let FAN mode to be changed from
sysfs(pwm1_enable). i.e pwm1_enable can not be set to 3, it will always
remain at 0.
This is caused because the device driver handles the result of
"read_u8_from_i2c(client, REG_FAN_CONF1, &conf_reg)" incorrectly. The
driver thinks an error has occurred if the (result != 0). This has been
fixed by changing the condition to (result < 0).
Signed-off-by: Vishwas M <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Fixes: 9df7305b5a86 ("hwmon: Add driver for SMSC EMC2103 temperature monitor and fan controller")
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
