linux/drivers/gpu/drm/meson
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
..
Kconfig
Makefile
meson_crtc.c
meson_crtc.h
meson_drv.c drm/meson: Unbind all connectors on module removal 2020-11-17 14:47:08 +01:00
meson_drv.h
meson_dw_hdmi.c drm/meson: dw-hdmi: Enable the iahb clock early enough 2020-11-20 16:41:10 +01:00
meson_dw_hdmi.h
meson_osd_afbcd.c
meson_osd_afbcd.h
meson_overlay.c drm: Use the state pointer directly in planes atomic_check 2021-02-24 20:27:03 +01:00
meson_overlay.h
meson_plane.c drm: Use the state pointer directly in planes atomic_check 2021-02-24 20:27:03 +01:00
meson_plane.h
meson_rdma.c
meson_rdma.h
meson_registers.h
meson_vclk.c drm/meson/meson_vclk: Make two local functions static 2020-11-17 18:34:14 +01:00
meson_vclk.h
meson_venc.c drm/meson/meson_venc: Make local function 'meson_venc_hdmi_get_dmt_vmode' static 2020-11-17 18:34:14 +01:00
meson_venc.h
meson_venc_cvbs.c
meson_venc_cvbs.h
meson_viu.c
meson_viu.h
meson_vpp.c
meson_vpp.h