hwmon: (adt7x10) Add device managed action for restoring config
authorCosmin Tanislav <cosmin.tanislav@analog.com>
Tue, 21 Dec 2021 21:58:36 +0000 (23:58 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commitaf910e92886c35461ccc5ea234e17f448a46b876
treea8d0ed1bf64ee5aa0299c07c1d6380c2d6a90036
parentf53207017fd99aaeecef6e61b4a3d8e868f53756
hwmon: (adt7x10) Add device managed action for restoring config

To simplify the core driver remove function.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20211221215841.2641417-3-demonsingur@gmail.com
[groeck: Adjust to use regmap; only register restore function if needed]
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/adt7x10.c