linux/drivers/gpu/drm/mediatek
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 phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder 2020-11-30 23:42:40 +08:00
Makefile phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder 2020-11-30 23:42:40 +08:00
mtk_cec.c
mtk_cec.h
mtk_disp_color.c drm/mediatek/mtk_disp_color: Fix formatting and provide missing member description 2020-11-22 10:50:07 +08:00
mtk_disp_ovl.c drm/mediatek/mtk_disp_ovl: Fix formatting and provide missing member description 2020-11-22 10:51:53 +08:00
mtk_disp_rdma.c drm/mediatek/mtk_disp_rdma: Fix formatting and supply missing struct member description 2020-11-22 08:24:01 +08:00
mtk_dpi.c drm/mediatek/mtk_dpi: Remove unused struct definition 'mtk_dpi_encoder_funcs' 2020-11-17 18:34:13 +01:00
mtk_dpi_regs.h
mtk_drm_crtc.c drm-misc-next for v5.12: 2021-01-07 10:46:32 +01:00
mtk_drm_crtc.h
mtk_drm_ddp.c drm/mediatek: Add DDP support for MT8167 2020-11-08 00:46:45 +08:00
mtk_drm_ddp.h
mtk_drm_ddp_comp.c drm/mediatek: Use correct aliases name for ovl 2020-11-28 16:56:55 +08:00
mtk_drm_ddp_comp.h soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h 2020-11-28 00:34:23 +01:00
mtk_drm_drv.c Mediatek DRM Next for Linux 5.11-2 2020-12-03 13:23:57 +10:00
mtk_drm_drv.h drm/mediatek: Separate mtk_mipi_tx to an independent module 2020-11-30 23:37:40 +08:00
mtk_drm_gem.c drm/prime: split array import functions v4 2020-11-30 15:00:45 +01:00
mtk_drm_gem.h drm/mediatek: Use struct dma_buf_map in GEM vmap ops 2020-11-10 10:39:16 +01:00
mtk_drm_plane.c drm: Use the state pointer directly in planes atomic_check 2021-02-24 20:27:03 +01:00
mtk_drm_plane.h
mtk_dsi.c drm/mediatek: dsi: Modify horizontal front/back porch byte formula 2020-11-21 18:31:07 +08:00
mtk_hdmi.c drm/mediatek: Optimize functions which do not need to return 2020-11-08 10:55:17 +08:00
mtk_hdmi.h drm/mediatek: Separate mtk_hdmi_phy to an independent module 2020-09-06 07:02:54 +08:00
mtk_hdmi_ddc.c
mtk_hdmi_regs.h