drm/arm/malidp: replace drm->dev_private with drm_to_malidp()
authorDanilo Krummrich <dakr@redhat.com>
Wed, 26 Oct 2022 15:59:31 +0000 (17:59 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Wed, 16 Nov 2022 10:33:41 +0000 (10:33 +0000)
commit1b93d3cb7181e1fa8fe22452985f93b0306c9b84
tree49b227d8d53ae8073b79af7a6106797b1d942d17
parentaefae8719a9aaede5032ca7331fc3cf65fd7ac7f
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
drivers/gpu/drm/arm/malidp_crtc.c
drivers/gpu/drm/arm/malidp_drv.c
drivers/gpu/drm/arm/malidp_drv.h
drivers/gpu/drm/arm/malidp_hw.c
drivers/gpu/drm/arm/malidp_mw.c
drivers/gpu/drm/arm/malidp_planes.c