From: Guenter Roeck <linux@roeck-us.net>
To: linux-hwmon@vger.kernel.org
Cc: "Arnd Bergmann" <arnd@arndb.de>,
"Guenter Roeck" <linux@roeck-us.net>,
"Tim Harvey" <tharvey@gateworks.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Riku Voipio" <riku.voipio@iki.fi>
Subject: [PATCH 00/10] hwmon: Drop unused platform data support and max197 driver
Date: Tue, 10 Nov 2026 10:34:23 -0800 [thread overview]
Message-ID: <20261110183434.181711-1-linux@roeck-us.net> (raw)
Several drivers in drivers/hwmon still support configuration through
platform data structures even though no in-tree platform or board code
ever instantiates or supplies that platform data.
Audit all hwmon drivers using dev_get_platdata(), dev->platform_data, or
headers under include/linux/platform_data/ and drop dead platform data
support where it is never provided in-tree:
- ads7828, emc2305, g762, gsc-hwmon, ltc4245, mcp3021, and shtc1 already
support configuring the respective parameters via devicetree / fwnode
properties (and/or hardware registers). Drop platform data support,
remove the unused platform data headers, and update documentation and
MAINTAINERS entries accordingly.
- f75375s already initializes PWM mode and enable state from chip
registers during probe and exposes pwm and pwm_enable via standard
hwmon sysfs attributes. Drop platform data support and remove
include/linux/f75375s.h.
- ds620 clears PO2 by default when no platform data is provided, keeping
the thermostat output pin low as a valid default configuration. Drop
platform data support and remove include/linux/platform_data/ds620.h.
- max197 requires platform data supplying a convert() callback function
pointer and fails to probe without it. Since no in-tree user ever
instantiates the device or provides max197_platform_data, remove the
unused driver along with its platform data header, Kconfig/Makefile
entries, and documentation.
Tooling and Testing Notes
-------------------------
Per Documentation/process/generated-content.rst:
- Tool used: Jetski AI coding assistant (Gemini).
- Prompt summary: Identify all drivers in drivers/hwmon whose platform
data is never supplied in-tree; remove platform data support and
unused platform data headers where an alternate configuration means
exists (including ds620's default PO2 configuration), and remove both
the driver and header where platform data is mandatory.
- Scope of generated content: Code changes, documentation/Kconfig/
MAINTAINERS updates, commit descriptions, and this cover letter.
- Testing: Verified with out-of-tree W=1 builds of drivers/hwmon/ under
both allmodconfig (CONFIG_OF=y) and CONFIG_OF=n, as well as
scripts/checkpatch.pl --strict. Not runtime-tested on hardware.
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Nuno Sá <nuno.sa@analog.com>
Cc: Riku Voipio <riku.voipio@iki.fi>
Guenter Roeck (10):
hwmon: (ads7828) Drop platform data support
hwmon: (emc2305) Drop platform data support
hwmon: (g762) Drop platform data support
hwmon: (gsc-hwmon) Drop platform data support
hwmon: (ltc4245) Drop platform data support
hwmon: (mcp3021) Drop platform data support
hwmon: (shtc1) Drop platform data support
hwmon: (max197) Remove driver
hwmon: (f75375s) Drop platform data support
hwmon: (ds620) Drop platform data support
Documentation/hwmon/ads7828.rst | 21 --
Documentation/hwmon/ds620.rst | 12 +-
Documentation/hwmon/g762.rst | 4 +-
Documentation/hwmon/index.rst | 1 -
Documentation/hwmon/ltc4245.rst | 6 +-
Documentation/hwmon/max197.rst | 70 -----
Documentation/hwmon/shtc1.rst | 3 +-
MAINTAINERS | 2 -
drivers/hwmon/Kconfig | 9 -
drivers/hwmon/Makefile | 1 -
drivers/hwmon/ads7828.c | 13 +-
drivers/hwmon/ds620.c | 13 +-
drivers/hwmon/emc2305.c | 44 +--
drivers/hwmon/f75375s.c | 100 +++----
drivers/hwmon/g762.c | 50 +---
drivers/hwmon/gsc-hwmon.c | 72 +++--
drivers/hwmon/ltc4245.c | 21 +-
drivers/hwmon/max197.c | 341 ------------------------
drivers/hwmon/mcp3021.c | 18 +-
drivers/hwmon/shtc1.c | 23 +-
include/linux/f75375s.h | 21 --
include/linux/platform_data/ads7828.h | 26 --
include/linux/platform_data/ds620.h | 22 --
include/linux/platform_data/emc2305.h | 28 --
include/linux/platform_data/g762.h | 24 --
include/linux/platform_data/gsc_hwmon.h | 45 ----
include/linux/platform_data/ltc4245.h | 17 --
include/linux/platform_data/max197.h | 23 --
include/linux/platform_data/shtc1.h | 14 -
29 files changed, 121 insertions(+), 923 deletions(-)
delete mode 100644 Documentation/hwmon/max197.rst
delete mode 100644 drivers/hwmon/max197.c
delete mode 100644 include/linux/f75375s.h
delete mode 100644 include/linux/platform_data/ads7828.h
delete mode 100644 include/linux/platform_data/ds620.h
delete mode 100644 include/linux/platform_data/emc2305.h
delete mode 100644 include/linux/platform_data/g762.h
delete mode 100644 include/linux/platform_data/gsc_hwmon.h
delete mode 100644 include/linux/platform_data/ltc4245.h
delete mode 100644 include/linux/platform_data/max197.h
delete mode 100644 include/linux/platform_data/shtc1.h
--
2.56.0
next reply other threads:[~2026-11-10 18:34 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 18:34 Guenter Roeck [this message]
2026-11-10 18:34 ` [PATCH 01/10] hwmon: (ads7828) Drop platform data support Guenter Roeck
2026-11-10 18:45 ` Arnd Bergmann
2026-11-10 19:40 ` Guenter Roeck
2026-11-10 19:49 ` Arnd Bergmann
2026-11-12 18:25 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 02/10] hwmon: (emc2305) " Guenter Roeck
2026-11-10 18:56 ` Arnd Bergmann
2026-11-12 19:06 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 03/10] hwmon: (g762) " Guenter Roeck
2026-11-10 19:09 ` Arnd Bergmann
2026-11-12 19:08 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 04/10] hwmon: (gsc-hwmon) " Guenter Roeck
2026-11-10 19:11 ` Arnd Bergmann
2026-11-12 19:09 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 05/10] hwmon: (ltc4245) " Guenter Roeck
2026-11-10 18:58 ` Arnd Bergmann
2026-11-12 19:11 ` Guenter Roeck
2026-11-11 9:54 ` Nuno Sá
2026-11-10 18:34 ` [PATCH 06/10] hwmon: (mcp3021) " Guenter Roeck
2026-11-10 19:12 ` Arnd Bergmann
2026-11-12 19:14 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 07/10] hwmon: (shtc1) " Guenter Roeck
2026-11-10 19:00 ` Arnd Bergmann
2026-11-12 19:18 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 08/10] hwmon: (max197) Remove driver Guenter Roeck
2026-11-10 19:02 ` Arnd Bergmann
2026-11-12 19:22 ` Guenter Roeck
2026-11-11 9:49 ` Nuno Sá
2026-11-10 18:34 ` [PATCH 09/10] hwmon: (f75375s) Drop platform data support Guenter Roeck
2026-11-10 19:18 ` Arnd Bergmann
2026-11-10 19:43 ` Guenter Roeck
2026-11-12 19:25 ` Guenter Roeck
2026-11-10 18:34 ` [PATCH 10/10] hwmon: (ds620) " Guenter Roeck
2026-11-10 19:07 ` Arnd Bergmann
2026-11-10 19:41 ` Guenter Roeck
2026-11-12 19:29 ` Guenter Roeck
2026-11-11 9:56 ` Nuno Sá
2026-11-10 19:24 ` [PATCH 00/10] hwmon: Drop unused platform data support and max197 driver Arnd Bergmann
2026-11-10 19:50 ` Guenter Roeck
2026-11-10 20:31 ` Arnd Bergmann
2026-11-12 19:31 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261110183434.181711-1-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=arnd@arndb.de \
--cc=linux-hwmon@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=riku.voipio@iki.fi \
--cc=tharvey@gateworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox