drm/arm/hdlcd: replace drm->dev_private with drm_to_hdlcd_priv()
authorDanilo Krummrich <dakr@redhat.com>
Wed, 26 Oct 2022 15:34:29 +0000 (17:34 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Mon, 7 Nov 2022 20:47:34 +0000 (20:47 +0000)
commit5f56e596dd7562c04137eed1f220703ad7111087
treed050d73f80b03a477d4923d55e2f774f5f61359b
parent9914013fe65647b5c0afc732da1adc9bc62a0a26
drm/arm/hdlcd: replace drm->dev_private with drm_to_hdlcd_priv()

Using drm_device->dev_private is deprecated. Since we've switched to
devm_drm_dev_alloc(), struct drm_device is now embedded in struct
hdlcd_drm_private, 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/20221026153431.72033-3-dakr@redhat.com
drivers/gpu/drm/arm/hdlcd_crtc.c
drivers/gpu/drm/arm/hdlcd_drv.c
drivers/gpu/drm/arm/hdlcd_drv.h