]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
hwmon: (ina3221) Use _info API to register hwmon device
authorNicolin Chen <nicoleotsuka@gmail.com>
Mon, 8 Oct 2018 20:14:24 +0000 (13:14 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000 (20:37 -0700)
commitd4b0166d28a8966ab6938d8bb7360c383b519256
tree7a216a734c232ed665e227cd79c54dd7c2d0bfc8
parentf21c8e753b1dcb8f9e5b096db1f7f4e6fdfa7258
hwmon: (ina3221) Use _info API to register hwmon device

The hwmon core has a newer API which abstracts most of common
things in the core so as to simplify the hwmon device drivers.

This patch implements this _info API to ina3221 hwmon driver.

It also reduces the binary size:
   text    data     bss     dec     hex filename
   5114    1712       0    6826    1aaa drivers/hwmon/ina3221_before.o
   4456     440       0    4896    1320 drivers/hwmon/ina3221.o

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina3221.c