]> 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)
commit90141c6e20bf5c7343148c1984dcbad3e99a9d06
tree30a88eacaed34434cf15d5d81c16d1821397145a
parent296921c3825c020c284ab8c05f159583576291f6
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