diff options
author | Danilo Krummrich <dakr@redhat.com> | 2022-10-26 18:59:31 +0300 |
---|---|---|
committer | Liviu Dudau <liviu.dudau@arm.com> | 2022-11-16 13:33:41 +0300 |
commit | 1b93d3cb7181e1fa8fe22452985f93b0306c9b84 (patch) | |
tree | 49b227d8d53ae8073b79af7a6106797b1d942d17 /drivers/gpu/drm/arm/malidp_drv.h | |
parent | aefae8719a9aaede5032ca7331fc3cf65fd7ac7f (diff) | |
download | linux-1b93d3cb7181e1fa8fe22452985f93b0306c9b84.tar.xz |
drm/arm/malidp: replace drm->dev_private with drm_to_malidp()
Using drm_device->dev_private is deprecated. Since we've switched to
devm_drm_dev_alloc(), struct drm_device is now embedded in struct
malidp_drm, hence we can use container_of() to get the struct drm_device
instance instead.
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221026155934.125294-3-dakr@redhat.com
Diffstat (limited to 'drivers/gpu/drm/arm/malidp_drv.h')
-rw-r--r-- | drivers/gpu/drm/arm/malidp_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.h b/drivers/gpu/drm/arm/malidp_drv.h index 00be369b28f1..bc0387876dea 100644 --- a/drivers/gpu/drm/arm/malidp_drv.h +++ b/drivers/gpu/drm/arm/malidp_drv.h @@ -45,6 +45,7 @@ struct malidp_drm { #endif }; +#define drm_to_malidp(x) container_of(x, struct malidp_drm, base) #define crtc_to_malidp_device(x) container_of(x, struct malidp_drm, crtc) struct malidp_plane { |