]> err.no Git - linux-2.6/commit
hwmon: (lm85) Misc cleanups
authorJean Delvare <khali@linux-fr.org>
Wed, 25 Jun 2008 12:47:35 +0000 (08:47 -0400)
committerMark M. Hoffman <mhoffman@lightlink.com>
Fri, 1 Aug 2008 03:44:03 +0000 (23:44 -0400)
commite89e22b23bceb3fbbcfb931ad17a564b7c1eaa55
tree906ac1a3699e51fc06d3efd3fc3679c8481cc7e3
parent7133e56f29030b13601d3399e20050053e560860
hwmon: (lm85) Misc cleanups

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.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Juerg Haefliger <juergh at gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/lm85.c