mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>
@ 2026-12-01 12:04 Uwe Kleine-König
  2026-12-01 23:49 ` kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2026-12-01 12:04 UTC (permalink / raw)
  To: Stephen Boyd, Abel Vesa
  Cc: linux-kernel, Jonathan Cameron, Lee Jones, Arnd Bergmann,
	Greg Kroah-Hartman, Srinivas Kandagatla, Vinod Koul,
	Linus Walleij, Sebastian Reichel, Liam Girdwood, Mark Brown

<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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01 23:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 12:04 [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h> Uwe Kleine-König
2026-12-01 23:49 ` kernel test robot

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®