dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm: Store USB device in struct drm_device
@ 2020-10-21 13:07 Thomas Zimmermann
  2020-10-21 13:07 ` [PATCH 1/3] drm: Add reference to USB device to " Thomas Zimmermann
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Thomas Zimmermann @ 2020-10-21 13:07 UTC (permalink / raw)
  To: hdegoede, airlied, daniel, sean, maarten.lankhorst, mripard
  Cc: Thomas Zimmermann, dri-devel

The drivers gm12u320 and udl operate on USB devices. They leave the
PCI device in struct drm_device empty and store the USB device in their
own driver structure.

Fix this special case and save a few bytes by putting the USB device
into an anonymous union with the PCI data. It's expected that DRM
core and helpers only touch the PCI-device field for actual PCI devices.

Thomas Zimmermann (3):
  drm: Add reference to USB device to struct drm_device
  drm/tiny/gm12u320: Store USB device in struct drm_device.udev
  drm/udl: Store USB device in struct drm_device.udev

 drivers/gpu/drm/tiny/gm12u320.c     | 52 +++++++++++++----------------
 drivers/gpu/drm/udl/udl_connector.c |  8 ++---
 drivers/gpu/drm/udl/udl_drv.c       |  2 +-
 drivers/gpu/drm/udl/udl_drv.h       |  1 -
 drivers/gpu/drm/udl/udl_main.c      | 15 +++++----
 include/drm/drm_device.h            | 21 ++++++++----
 6 files changed, 52 insertions(+), 47 deletions(-)

--
2.28.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2020-10-22 11:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-21 13:07 [PATCH 0/3] drm: Store USB device in struct drm_device Thomas Zimmermann
2020-10-21 13:07 ` [PATCH 1/3] drm: Add reference to USB device to " Thomas Zimmermann
2020-10-21 13:07 ` [PATCH 2/3] drm/tiny/gm12u320: Store USB device in struct drm_device.udev Thomas Zimmermann
2020-10-21 13:07 ` [PATCH 3/3] drm/udl: " Thomas Zimmermann
2020-10-21 20:01 ` [PATCH 0/3] drm: Store USB device in struct drm_device Daniel Vetter
2020-10-21 20:05   ` Daniel Vetter
2020-10-22  9:20 ` Hans de Goede
2020-10-22  9:30   ` Thomas Zimmermann
2020-10-22 10:17     ` Hans de Goede
2020-10-22 10:57       ` Thomas Zimmermann
2020-10-22 11:32         ` Hans de Goede

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