]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83627ehf) Clean up probe function
authorJean Delvare <khali@linux-fr.org>
Fri, 4 Nov 2011 11:00:47 +0000 (12:00 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 4 Nov 2011 11:00:47 +0000 (12:00 +0100)
commit8a03bc185c1b889c9246bb40effd52f86ec4697c
tree3c982ed45c7f7e51da0b2e735407b9ad3952e843
parent9574d3505425fd5bbc8342fa893d97c283fc2ca7
hwmon: (w83627ehf) Clean up probe function

The probe function has grown pretty large, I think it's time for some
cleanups, starting with these two simple ones:
* Move temp3/in6 check for the W83667HG later in the function, where
  it is done for all other chip types.
* Move temperature register setting to a separate function, to avoid
  code duplication.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83627ehf.c