]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Simplify temperature sensor type handling
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:48 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:48 +0000 (20:31 +0200)
commit19d27fb2acb380e5bf5043f820189e31f62501d9
tree212af4c4e49ecf64174981c336ebd6ca15bcfb59
parentddbd716bd6bff9a7e3a6360f4a9d81ccf94d219b
hwmon: (w83795) Simplify temperature sensor type handling

All 3 temperature sensor type sysfs functions (show_temp_mode,
store_temp_mode and show_dts_mode) can be simplified. We don't
create these files when the correponding input isn't in temperature
monitoring mode, so there is no point in handling that case.
Likewise, we don't allow changing inputs from temperature to voltage,
so the code handling this case is dead and can be removed.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83795.c