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>
Mon, 28 Feb 2022 01:03:17 +0000 (17:03 -0800)
commit915d4664b7158d8d0f44da810186742c69300f02
treea94fdd53abe632ed8077cb9aa01820f3c000b838
parent15b1c188f8cf2ff9f296c9781d1e4fc061aaf371
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