]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hwmon: (lm85) Simplify device initialization function
authorJean Delvare <khali@linux-fr.org>
Wed, 25 Jun 2008 13:10:30 +0000 (09:10 -0400)
committerMark M. Hoffman <mhoffman@lightlink.com>
Fri, 1 Aug 2008 03:44:03 +0000 (23:44 -0400)
commit5f44759470f7248f74947a39cba339009d62052c
treed599a349467fee830b7009fb604ef2b8bcd48855
parente89e22b23bceb3fbbcfb931ad17a564b7c1eaa55
hwmon: (lm85) Simplify device initialization function

Clean up and simplify the device initialization function:
* Degrade error messages to warnings - what they really are.
* Stop warning about VxI mode, we don't really care.
* Drop comment about lack of limit initialization - that's the standard
  way, all hardware monitoring drivers do that.
* Only read the configuration register once.
* Only write back to the configuration register if needed.
* Don't attempt to clear the lock bit, it locks itself to 1.
* Move the function to before it's called, so that we no longer need to
  forware declare it.

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