linux/drivers/gpu/drm/omapdrm
Maxime Ripard dec9202067
drm: Use the state pointer directly in planes atomic_check
Now that atomic_check takes the global atomic state as a parameter, we
don't need to go through the pointer in the plane state.

This was done using the following coccinelle script:

@ plane_atomic_func @
identifier helpers;
identifier func;
@@

static struct drm_plane_helper_funcs helpers = {
	...,
	.atomic_check = func,
	...,
};

@@
identifier plane_atomic_func.func;
identifier plane, state;
identifier plane_state;
@@

  func(struct drm_plane *plane, struct drm_atomic_state *state) {
  ...
- struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane);
  <... when != plane_state
- plane_state->state
+ state
  ...>
 }

@@
identifier plane_atomic_func.func;
identifier plane, state;
identifier plane_state;
@@

  func(struct drm_plane *plane, struct drm_atomic_state *state) {
  ...
  struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane);
  <...
- plane_state->state
+ state
  ...>
 }

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210219120032.260676-5-maxime@cerno.tech
2021-02-24 20:27:03 +01:00
..
dss drm/omap: dsi: fix unreachable code in dsi_vc_send_short() 2021-01-27 16:21:36 +02:00
Kconfig drm/omap: squash omapdrm sub-modules into one 2020-12-15 16:08:27 +02:00
Makefile drm/omap: remove unused display.c 2020-12-15 16:08:27 +02:00
omap_crtc.c drm/omap: remove dss_mgr_ops 2020-12-15 16:17:30 +02:00
omap_crtc.h drm/omap: remove dss_mgr_ops 2020-12-15 16:17:30 +02:00
omap_debugfs.c drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omap_dmm_priv.h drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omap_dmm_tiler.c drm/omap: dmm_tiler: fix return error code in omap_dmm_probe() 2020-11-17 14:43:19 +01:00
omap_dmm_tiler.h drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omap_drv.c drm/omapdrm: Annotate dma-fence critical section in commit path 2021-02-23 12:54:19 +01:00
omap_drv.h drm/omap: remove dispc_ops 2020-12-15 16:15:06 +02:00
omap_encoder.c drm/omap: drop unused DSS next pointer 2020-12-15 16:08:26 +02:00
omap_encoder.h
omap_fb.c drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omap_fb.h
omap_fbdev.c drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omap_fbdev.h
omap_gem_dmabuf.c drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omap_gem.c drm/prime: split array import functions v4 2020-11-30 15:00:45 +01:00
omap_gem.h drm/omapdrm: Introduce GEM object functions 2020-09-25 09:21:10 +02:00
omap_irq.c drm/omap: remove dispc_ops 2020-12-15 16:15:06 +02:00
omap_irq.h
omap_plane.c drm: Use the state pointer directly in planes atomic_check 2021-02-24 20:27:03 +01:00
omap_plane.h
tcm-sita.c drm/omap: Delete useless kfree code 2020-12-15 17:19:54 +02:00
tcm.h
TODO