Re: [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>

From: Uwe Kleine-König

Date: Wed Dec 02 2026 - 00:43:37 EST


Hello,

On Tue, Dec 01, 2026 at 01:04:10PM +0100, Uwe Kleine-König wrote:
> <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>.

Sorry, confusion on my end, I passed the wrong file to git-send-email
and intended to send out another patch. Please drop this patch as
https://lore.kernel.org/all/cover.1795703292.git.u.kleine-koenig@xxxxxxxxxxxx/
is the better change.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature