hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure
authorMichael Shych <michaelsh@nvidia.com>
Tue, 18 Jan 2022 07:56:10 +0000 (09:56 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 5 Feb 2022 18:01:34 +0000 (10:01 -0800)
commit3e27150cd65b57e097cbcf29f2dfca089a1fca51
tree7e65fbb756a9d8f2ae91582f026bc0d6600ad202
parentdf44f4201cb46f31e99dfb0f512022bf09505d7c
hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure

Reduce code by using devm_hwmon_device_register_with_groups() API by
devm_hwmon_device_register_with_info() API.
The motivation is to reduce code and to allow easy support for similar
devices by the same driver.

Signed-off-by: Michael Shych <michaelsh@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20220118075611.10665-3-michaelsh@nvidia.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/powr1220.c