drm/tidss: Don't use drm_device->dev_private
Upcasting using a container_of macro is more typesafe, faster and easier for the compiler to optimize. Tested-by: Jyri Sarha <jsarha@ti.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Jyri Sarha <jsarha@ti.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200415074034.175360-25-daniel.vetter@ffwll.ch
Esse commit está contido em:
@@ -25,7 +25,7 @@
|
||||
static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state)
|
||||
{
|
||||
struct drm_device *ddev = old_state->dev;
|
||||
struct tidss_device *tidss = ddev->dev_private;
|
||||
struct tidss_device *tidss = to_tidss(ddev);
|
||||
|
||||
dev_dbg(ddev->dev, "%s\n", __func__);
|
||||
|
||||
|
Referência em uma nova issue
Block a user