hwmon: (k10temp) Move chip specific code into probe function
authorGuenter Roeck <linux@roeck-us.net>
Tue, 5 Sep 2017 01:33:53 +0000 (18:33 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Oct 2017 01:36:03 +0000 (18:36 -0700)
commit68546abf7a3a63f199e53d6dcaa7375df37a6aaa
tree67553c0f86428fb8f196973f098a40ce6bca36e9
parentfc483a9bf795ebf49bf0c872d125391d8fee2f3f
hwmon: (k10temp) Move chip specific code into probe function

Introduce a local data structure and determine the temperature read
function at probe time to reduce runtime complexity.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k10temp.c