hwmon: (w83795) Rework beep_enable implementation
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
commit02728ffef9c2cf067e654e832b8c282a8a4d0b16
tree00da2e02471413e8698cd5de3258329b5f03e1db
parent54891a3c135b30ca0718dbf81f78260795a5b2fe
hwmon: (w83795) Rework beep_enable implementation

Handle beep_enable just like all other beep bits. It doesn't need
anything special, so let's avoid redundant code. This also saves a
duplicate register read at initialization time.

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