[PATCH v2 0/8] Refactor ADT7X10

From: Cosmin Tanislav
Date: Tue Dec 21 2021 - 16:05:04 EST


V1 -> V2:
* add device managed action for restoring config
* merge multiple small related patches into a single patch
that converts the driver to use devm_hwmon_device_register_with_info
* switch to devm_request_threaded_irq after switching to
devm_hwmon_device_register_with_info to make sure that it is impossible
for the interrupt handler to access the freed hwmon device
* drop core driver remove callback

Cosmin Tanislav (8):
hwmon: (adt7410) Pass name to core driver
hwmon: (adt7x10) Store bus_dev in private data
hwmon: (adt7x10) Add device managed action for restoring config
hwmon: (adt7x10) Use devm_hwmon_device_register_with_info
hwmon: (adt7x10) Use devm_request_threaded_irq
hwmon: (adt7x10) Remove empty driver removal callback
hwmon: (adt7x10) Pass hwinfo dev to irq handler
hwmon: (adt7x10) Use hwmon_notify_event

drivers/hwmon/adt7310.c | 7 -
drivers/hwmon/adt7410.c | 9 +-
drivers/hwmon/adt7x10.c | 281 ++++++++++++++++++++--------------------
drivers/hwmon/adt7x10.h | 1 -
4 files changed, 144 insertions(+), 154 deletions(-)

--
2.34.1