hwmon: (k8temp) update to use new hwmon registration API
authorRobert Karszniewicz <avoidr@riseup.net>
Sun, 21 Jul 2019 12:00:51 +0000 (14:00 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 3 Sep 2019 19:47:17 +0000 (12:47 -0700)
commit3b07a702cc2bb01083aba0e4378da23cd8b952fc
tree85ee7ddfdd6ec4a5e26e4ecebb859cfe1ac6c777
parent59eedefbba121a698969ea005c6d7cd2ccb80376
hwmon: (k8temp) update to use new hwmon registration API

Removes:
- hwmon_dev from k8temp_data struct, as that is now passed
  to callbacks, anyway.
- other k8temp_data struct fields, too.
- k8temp_update_device()

Also reduces binary size:
   text    data     bss     dec     hex filename
   4139    1448       0    5587    15d3 drivers/hwmon/k8temp.ko.bak
   3103    1220       0    4323    10e3 drivers/hwmon/k8temp.ko

Signed-off-by: Robert Karszniewicz <avoidr@firemail.cc>
Signed-off-by: Robert Karszniewicz <avoidr@riseup.net>
Link: https://lore.kernel.org/r/20190721120051.28064-1-avoidr@riseup.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k8temp.c