[PATCH v2 0/2] hwmon: (ads7871) Modernize and fix DMA safety

From: Tabrez Ahmed

Date: Sun Mar 29 2026 - 03:34:47 EST


This series modernizes the ads7871 driver by migrating it to the
hwmon_device_register_with_info API and fixes a DMA safety issue.

v2:

Dropped custom mutex in favor of native hwmon core serialization.

Split API migration and DMA fix into separate, logical patches.

Corrected output scaling and sign extension to meet hwmon standards.

Compile-tested only due to lack of hardware

Signed-off-by: Tabrez Ahmed <tabreztalks@xxxxxxxxx>

Tabrez Ahmed (2):
hwmon: (ads7871) Convert to hwmon_device_register_with_info
hwmon: (ads7871) Use DMA-safe buffer for SPI writes

drivers/hwmon/ads7871.c | 110 ++++++++++++++++++++++------------------
1 file changed, 62 insertions(+), 48 deletions(-)

--
2.43.0