]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit557cbf49d20f371fb430335fa504f6a50a001705
tree30a88eacaed34434cf15d5d81c16d1821397145a
parent778fb961b03c37d8db3d7f418670e2fc09e4c371
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