hwmon: (lm85) Misc cleanups
Hi Jean:
Quoted 11 lines · Jean Delvare
Misc cleanups to the lm85 hardware monitoring driver:
* Mark constant arrays as const.
* Remove useless masks.
* Havelm85_write_valuereturn void - nobody is checking the returned value anyway and in some cases it was plain wrong.
* Remove useless initializations.
* Renamenew_clientto client inlm85_detect.
* Replace cascaded if/else with a switch/case inlm85_detect.
* Group similar loops inlm85_update_device.
* Remove legacy comments.
Quoted 4 lines
Signed-off-by Jean Delvare <[email protected]>--- drivers/hwmon/lm85.c | 151 ++++++++++++++++++++++---------------------------- 1 file changed, 67 insertions(+), 84 deletions(-)
Applied to hwmon-2.6.git/testing, thanks.
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors