]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Fix pwm sysfs attribute removal
authorGuenter Roeck <linux@roeck-us.net>
Fri, 27 Mar 2015 13:03:41 +0000 (06:03 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Mar 2015 15:12:16 +0000 (08:12 -0700)
commitbe20b31323b451521d3c56fbdfaa5d0c8f9c4d5c
treed32b34bc5cc06f09b64e5cd96c27fb6513256f36
parent708b77c44d4642042b32075c19c4f25d27fefe37
hwmon: (it87) Fix pwm sysfs attribute removal

Detection if a pwm channel is supported was wrong on removal,
causing the code to try removing non-existing sysfs attributes.
That didn't matter much because sysfs attribute removal of non-existing
files fails silently, and because the wrong evaluation always returned
false, but should nevertheless be fixed.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c