]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Split out chip registers setting code on probe path
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Wed, 9 Aug 2017 10:05:30 +0000 (12:05 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Aug 2017 15:24:38 +0000 (08:24 -0700)
commit91f142adb847e526ae9516b623775b39023459b6
tree30a88eacaed34434cf15d5d81c16d1821397145a
parent280c6efc1cf95dfb5c4182d0a7e080aa770511f5
hwmon: (it87) Split out chip registers setting code on probe path

This commit splits out chip registers setting code on probe path to
separate functions so they can be reused for setting the device properly
again when system resumes from suspend.

While we are at it let's also make clear that on IT8720 and IT8782 it's
the VCCH5V line that is (possibly) routed to in7.
This will make it consistent with a similar message that it printed on
IT8783.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c