Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH] media: firewire: Drop <linux/mod_devicetable.h> from firedtv.h
@ 2026-11-12 10:18 Uwe Kleine-König (The Capable Hub)
       [not found] ` <6af5a328.9e649e5a.f3855.8f9a@mx.google.com>
  2026-11-12 16:08 ` [PATCH] " Uwe Kleine-König (The Capable Hub)
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König (The Capable Hub) @ 2026-11-12 10:18 UTC (permalink / raw)
  To: Stefan Richter, Mauro Carvalho Chehab
  Cc: Pawel Zalewski, linux-media, linux1394-devel

This header has 6 consumers:

	x$ git grep firedtv.h
	drivers/media/firewire/firedtv-avc.c:#include "firedtv.h"
	drivers/media/firewire/firedtv-ci.c:#include "firedtv.h"
	drivers/media/firewire/firedtv-dvb.c:#include "firedtv.h"
	drivers/media/firewire/firedtv-fe.c:#include "firedtv.h"
	drivers/media/firewire/firedtv-fw.c:#include "firedtv.h"
	drivers/media/firewire/firedtv-rc.c:#include "firedtv.h"

In these 6 files and the header itself only a single device_id struct is
used:

	$ git grep -oE "\<(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)\>" drivers/media/firewire/firedtv.h drivers/media/firewire/firedtv-{avc,ci,dvb,fe,fw,rc}.c | sort -u
	drivers/media/firewire/firedtv-fw.c:ieee1394_device_id

struct ieee1394_device_id is provided by <linux/firewire.h> which is
included by firedtv-fw.c.

So <linux/mod_devicetable.h> can be dropped from firedtv.h.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
---
Hello,

this is part of the quest to get rid of <linux/mod_devicetable.h> which
introduces a big bunch of useless dependencies.

Best regards
Uwe

 drivers/media/firewire/firedtv.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/firewire/firedtv.h b/drivers/media/firewire/firedtv.h
index 190bb1a57079..428f9403fd2a 100644
--- a/drivers/media/firewire/firedtv.h
+++ b/drivers/media/firewire/firedtv.h
@@ -13,7 +13,6 @@
 #include <linux/dvb/dmx.h>
 #include <linux/dvb/frontend.h>
 #include <linux/list.h>
-#include <linux/mod_devicetable.h>
 #include <linux/mutex.h>
 #include <linux/spinlock_types.h>
 #include <linux/types.h>

base-commit: aaa2f954c21b205a0bcd0961e5b2be4e82e58455
-- 
2.56.0.rc1


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

end of thread, other threads:[~2026-11-12 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 10:18 [PATCH] media: firewire: Drop <linux/mod_devicetable.h> from firedtv.h Uwe Kleine-König (The Capable Hub)
     [not found] ` <6af5a328.9e649e5a.f3855.8f9a@mx.google.com>
2026-11-12 16:07   ` Uwe Kleine-König (The Capable Hub)
2026-11-12 16:08 ` [PATCH] " Uwe Kleine-König (The Capable Hub)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox