Skip to contentSkip to conversation

hwmon: (lm85) Misc cleanups

PATCH Mark M. Hoffman 1 participant 1 message Jun 25, 2008

lore
Share & tools
lore
#0 lore raw

Hi Jean:

Quoted 11 lines · Jean Delvare

Misc cleanups to the lm85 hardware monitoring driver:
* Mark constant arrays as const.
* Remove useless masks.
* Have lm85_write_value return void - nobody is checking the returned value anyway and in some cases it was plain wrong.
* Remove useless initializations.
* Rename new_client to client in lm85_detect.
* Replace cascaded if/else with a switch/case in lm85_detect.
* Group similar loops in lm85_update_device.
* Remove legacy comments.

Quoted 4 lines
---
 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