History

media: em28xx: Add include for struct usb_device_id

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.

Uwe Kleine-König (The Capable Hub) committed 4 months ago

Commit c19f08f1 parent a59fbb81 file · +1 −0Browse files

Unified · Split

drivers/media/usb/em28xx/em28xx.h+1−0
@@ -23,6 +23,7 @@ · 22 unmodified lines
2323 #include <linux/mutex.h>
2424 #include <linux/kref.h>
2525 #include <linux/videodev2.h>
26+#include <linux/device-id/usb.h>
2627
2728 #include <media/videobuf2-v4l2.h>
2829 #include <media/videobuf2-vmalloc.h>