• Jean Delvare's avatar
    hwmon: (w83795) Simplify temperature sensor type handling · 39deb699
    Jean Delvare authored
    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: default avatarJean Delvare <khali@linux-fr.org>
    39deb699
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...