mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Uwe Kleine-König (The Capable Hub)"
	<u.kleine-koenig@baylibre.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] drm: Drop #include <linux/mod_devicetable.h> from <drm/display/drm_dp_aux_bus.h>
Date: Wed, 11 Nov 2026 13:51:59 +0100	[thread overview]
Message-ID: <441404fa-5287-4748-b53d-51d1bf02ba73@suse.de> (raw)
In-Reply-To: <3d67a8ac-58b4-41c3-8359-06ff0a4e2b08@suse.de>



Am 11.11.26 um 09:40 schrieb Thomas Zimmermann:
> Hi
>
> Am 11.11.26 um 09:21 schrieb Uwe Kleine-König (The Capable Hub):
>> Hello,
>>
>> On Thu, Aug 06, 2026 at 06:16:06PM +0200, Uwe Kleine-König (The 
>> Capable Hub) wrote:
>>> Only .c files include <drm/display/drm_dp_aux_bus.h> (see
>>>
>>>     git grep -l drm_dp_aux_bus\\.h
>>>
>>> ). From the device-id structures that <linux/mod_devicetable.h> 
>>> provides
>>> there are:
>>>
>>>   - 8 files using struct auxiliary_device_id;
>>>   - 2 files using struct i2c_device_id; and
>>>   - 10 files using struct of_device_id
>>>
>>> (and no other usages; see
>>>
>>>     git grep -l drm_dp_aux_bus\\.h | xargs grep -oh -E 
>>> "\<(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)\>" 
>>> | sort | uniq -c
>>>
>>> ).
>>>
>>> The 8 files using struct auxiliary_device_id already include
>>> <linux/auxiliary_bus.h>, the 2 files using struct i2c_device_id include
>>> <linux/i2c.h> and drm_dp_aux_bus.h itself includes <linux/device.h>
>>> which provide struct auxiliary_device_id, struct i2c_device_id and
>>> struct of_device_id respectively.
>>>
>>> So the include of <linux/mod_devicetable.h> can just be dropped. This
>>> gets one step closer to being able to remove that header.
>>>
>>> Signed-off-by: Uwe Kleine-König (The Capable Hub) 
>>> <u.kleine-koenig@baylibre.com>
>
> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
>
>> This is still all true, including the statistics (as of next-20261110)
>> and the patch still applies fine.
>>
>> Can someone get convinced to apply it?
>
> Of course, will be merged soon.

Merged now into drm-misc-next

>
> Best regards
> Thomas
>
>
>>
>> Thanks
>> Uwe Kleine-König
>>
>>> ---
>>>   include/drm/display/drm_dp_aux_bus.h | 1 -
>>>   1 file changed, 1 deletion(-)
>>>
>>> diff --git a/include/drm/display/drm_dp_aux_bus.h 
>>> b/include/drm/display/drm_dp_aux_bus.h
>>> index 8a0a486383c5..ca8db8ccc1f9 100644
>>> --- a/include/drm/display/drm_dp_aux_bus.h
>>> +++ b/include/drm/display/drm_dp_aux_bus.h
>>> @@ -11,7 +11,6 @@
>>>   #define _DP_AUX_BUS_H_
>>>     #include <linux/device.h>
>>> -#include <linux/mod_devicetable.h>
>>>     /**
>>>    * struct dp_aux_ep_device - Main dev structure for DP AUX endpoints
>>>
>>> base-commit: 1701fda2f58e345c050f4309971bdc07cd6146ba
>>> -- 
>>> 2.55.0.11.g153666a7d9bb
>>>
>

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Stefan Gaiser, Jochen Jaser, Abhinav Puri, (HRB 36809, AG Nürnberg)



      reply	other threads:[~2026-11-11 12:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 16:16 Uwe Kleine-König (The Capable Hub)
2026-11-11  8:21 ` Uwe Kleine-König (The Capable Hub)
2026-11-11  8:40   ` Thomas Zimmermann
2026-11-11 12:51     ` Thomas Zimmermann [this message]

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=441404fa-5287-4748-b53d-51d1bf02ba73@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=u.kleine-koenig@baylibre.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

all inboxes | Powered by JetHome®