]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: (ads7871) Convert to hwmon_device_register_with_info
authorTabrez Ahmed <tabreztalks@gmail.com>
Sat, 2 May 2026 02:08:43 +0000 (07:38 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:22:57 +0000 (08:22 -0700)
commita2b0986398e6dd952ab413f6dcd271ddf86ea9b8
treed201923efcdf9a7ad5d4fa502f26df0d4a091ab7
parent07668f5ca30620fb1edfd730181bfd8120aa6c55
hwmon: (ads7871) Convert to hwmon_device_register_with_info

Convert the ads7871 driver from the legacy hwmon_device_register() to the
modern hwmon_device_register_with_info() API. This migration simplifies
the driver by using the structured hwmon_channel_info approach and
prepares the codebase for the transition to a shared DMA-safe buffer.
While at it, fix checkpatch violations.

Signed-off-by: Tabrez Ahmed <tabreztalks@gmail.com>
Link: https://lore.kernel.org/r/20260502020844.110038-3-tabreztalks@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ads7871.c