]> git.baikalelectronics.ru Git - kernel.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)
commitf8bb261a13b07bc77947c63164b31143f3b944c4
treed599a349467fee830b7009fb604ef2b8bcd48855
parentc4fba5e8c040d2376f55f999d0a14025dcf4048f
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