From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Stephen Boyd <sboyd@kernel.org>, Abel Vesa <abelvesa@kernel.org>
Cc: linux-kernel@vger.kernel.org, Jonathan Cameron <jic23@kernel.org>,
Lee Jones <lee@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Srinivas Kandagatla <srini@kernel.org>,
Vinod Koul <vkoul@kernel.org>, Linus Walleij <linusw@kernel.org>,
Sebastian Reichel <sre@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Subject: [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>
Date: Tue, 1 Dec 2026 13:04:10 +0100 [thread overview]
Message-ID: <20261201120410.687584-2-u.kleine-koenig@baylibre.com> (raw)
<linux/mod_devicetable.h> provides many *_device_id structs, the
consumers of <linux/spmi.h> and the header itself however only need
of_device_id and platform_device_id (
$ git grep -Eo "\<(acpi_device_id|amba_id|ap_device_id|apr_device_id|auxiliary_device_id|bcma_device_id|ccw_device_id|cdx_device_id|coreboot_device_id|css_device_id|dfl_device_id|dmi_(device|system)_id|eisa_device_id|fsl_mc_device_id|hda_device_id|hid_device_id|hv_vmbus_device_id|i2c_device_id|i3c_device_id|ieee1394_device_id|input_device_id|ipack_device_id|isapnp_device_id|ishtp_device_id|mcb_device_id|mdio_device_id|mei_cl_device_id|mhi_device_id|mips_cdmm_device_id|of_device_id|parisc_device_id|pci_device_id|pci_epf_device_id|pcmcia_device_id|platform_device_id|pnp_(card_)?device_id|rio_device_id|rpmsg_device_id|sdio_device_id|sdw_device_id|serio_device_id|slim_device_id|spi_device_id|spmi_device_id|ssam_device_id|ssb_device_id|tb_service_id|tee_client_device_id|typec_device_id|ulpi_device_id|usb_device_id|vchiq_device_id|vio_device_id|virtio_device_id|wmi_device_id|x86_(cpu|device)_id|zorro_device_id|cpu_feature)\>" $(git grep -l linux/spmi.h) include/linux/spmi.h
drivers/iio/adc/qcom-spmi-iadc.c:of_device_id
drivers/iio/adc/qcom-spmi-rradc.c:of_device_id
drivers/mfd/hi6421-spmi-pmic.c:of_device_id
drivers/mfd/qcom-spmi-pmic.c:of_device_id
drivers/misc/qcom-coincell.c:of_device_id
drivers/nvmem/apple-spmi-nvmem.c:of_device_id
drivers/nvmem/qcom-spmi-sdam.c:of_device_id
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c:of_device_id
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c:of_device_id
drivers/power/reset/qcom-pon.c:of_device_id
drivers/regulator/hi6421v600-regulator.c:platform_device_id
drivers/regulator/mt6315-regulator.c:of_device_id
drivers/regulator/mt6316-regulator.c:of_device_id
drivers/regulator/mt6363-regulator.c:of_device_id
drivers/soc/qcom/qcom-pbs.c:of_device_id
drivers/spmi/hisi-spmi-controller.c:of_device_id
drivers/spmi/spmi-apple-controller.c:of_device_id
drivers/spmi/spmi-mtk-pmif.c:of_device_id
drivers/spmi/spmi-pmic-arb.c:of_device_id
).
struct of_device_id is already provided by <linux/device.h> and
drivers/regulator/hi6421v600-regulator.c includes
<linux/platform_device.h> itself to get struct platform_device_id.
So the include of <linux/mod_devicetable.h> can just be dropped from
<linux/spmi.h> bringing us one step closer to remove
<linux/mod_devicetable.h>.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
include/linux/spmi.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/spmi.h b/include/linux/spmi.h
index 4daebc980501..57d5a29c80f1 100644
--- a/include/linux/spmi.h
+++ b/include/linux/spmi.h
@@ -6,7 +6,6 @@
#include <linux/types.h>
#include <linux/device.h>
-#include <linux/mod_devicetable.h>
/* Maximum slave identifier */
#define SPMI_MAX_SLAVE_ID 16
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
--
2.56.0.rc1
next reply other threads:[~2026-12-01 12:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 12:04 Uwe Kleine-König [this message]
2026-12-01 23:49 ` kernel test robot
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=20261201120410.687584-2-u.kleine-koenig@baylibre.com \
--to=u.kleine-koenig@baylibre.com \
--cc=abelvesa@kernel.org \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jic23@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sboyd@kernel.org \
--cc=sre@kernel.org \
--cc=srini@kernel.org \
--cc=vkoul@kernel.org \
/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
all inboxes | Powered by JetHome®