[PATCH 0/3] drm: Store USB device in struct drm_device
Thomas Zimmermann
tzimmermann at suse.de
Wed Oct 21 13:07:29 UTC 2020
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
More information about the dri-devel
mailing list