]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adt7x10) Use devm_hwmon_device_register_with_info
authorCosmin Tanislav <cosmin.tanislav@analog.com>
Tue, 21 Dec 2021 21:58:37 +0000 (23:58 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commitc7de50537f2302ccfc012478ca25c7631318993c
tree84d27a54b177d0dd9472789df42084833f763e60
parentb7777264b4c5904120e907887decc9fecff5243f
hwmon: (adt7x10) Use devm_hwmon_device_register_with_info

Describe the only available channel, implement read, write
and is_visible callbacks.
Also, pass name to core driver for the i2c device so that
it can be used to register hwmon device.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20211221215841.2641417-4-demonsingur@gmail.com
[groeck: Adjusted to use regmap]
Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7410.c
drivers/hwmon/adt7x10.c