From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: "Uwe Kleine-König (The Capable Hub)"
<u.kleine-koenig@baylibre.com>,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
Danilo Krummrich <dakr@kernel.org>,
Takashi Sakamoto <o-takashi@sakamocchi.jp>
Subject: Re: [PATCH v4 14/17] media: em28xx: Add include for struct usb_device_id
Date: Mon, 27 Jul 2026 12:14:51 +0200 [thread overview]
Message-ID: <68d1c273-bbca-49cc-a7f2-7fd6e868fbf4@kernel.org> (raw)
In-Reply-To: <e72de5b4b9f1aa77a3c19a5e698a195dfd81ae0b.1782808461.git.u.kleine-koenig@baylibre.com>
On 30/06/2026 11:24, Uwe Kleine-König (The Capable Hub) wrote:
> Traditionally <linux/mod_devicetable.h> was a header defining a plethora
> of structs, among them struct usb_device_id. This was split now with the
> objective that only the relevant bits are included.
>
> Currently <linux/mod_devicetable.h> is transitively included in
> drivers/media/usb/em28xx/em28xx.h via:
>
> drivers/media/usb/em28xx/em28xx.h ->
> <linux/i2c.h> ->
> <linux/acpi.h> ->
> <linux/device.h> ->
> <linux/device/driver.h> ->
> <linux/mod_devicetable.h
>
> To keep struct usb_device_id available once <linux/device/driver.h>
> stops including <linux/mod_devicetable.h>, include it the header
> providing that struct explictly.
>
> Acked-by: Danilo Krummrich <dakr@kernel.org>
> Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> Link: https://patch.msgid.link/b859817d9f6ec7450302a231e093a5ad5852cb91.1782682124.git.ukleinek@kernel.org
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Acked-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Regards,
Hans
> ---
> drivers/media/usb/em28xx/em28xx.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
> index 21c912403efc..711f281613f5 100644
> --- a/drivers/media/usb/em28xx/em28xx.h
> +++ b/drivers/media/usb/em28xx/em28xx.h
> @@ -23,6 +23,7 @@
> #include <linux/mutex.h>
> #include <linux/kref.h>
> #include <linux/videodev2.h>
> +#include <linux/device-id/usb.h>
>
> #include <media/videobuf2-v4l2.h>
> #include <media/videobuf2-vmalloc.h>
prev parent reply other threads:[~2026-07-27 10:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 9:24 [PATCH v4 00/17] mod_devicetable.h: Split into per subsystem headers Uwe Kleine-König (The Capable Hub)
2026-06-30 9:24 ` [PATCH v4 02/17] media: ti: vpe: #include <linux/platform_device.h> explicitly Uwe Kleine-König (The Capable Hub)
2026-07-27 10:14 ` Hans Verkuil
2026-06-30 9:24 ` [PATCH v4 14/17] media: em28xx: Add include for struct usb_device_id Uwe Kleine-König (The Capable Hub)
2026-07-27 10:14 ` Hans Verkuil [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=68d1c273-bbca-49cc-a7f2-7fd6e868fbf4@kernel.org \
--to=hverkuil+cisco@kernel.org \
--cc=dakr@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=o-takashi@sakamocchi.jp \
--cc=torvalds@linux-foundation.org \
--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