Star64_linux/drivers/gpu/drm
Maxime Ripard d74252bb8f
drm: Use the state pointer directly in 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 CRTC state.

This was done using the following coccinelle script:

@ crtc_atomic_func @
identifier helpers;
identifier func;
@@

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

@@
identifier crtc_atomic_func.func;
identifier crtc, state;
@@

  func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
  ...
- struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
  ... when != crtc_state
- crtc_state->state
+ state
  ...
 }

@@
struct drm_crtc_state *crtc_state;
identifier crtc_atomic_func.func;
identifier crtc, state;
@@

  func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
  ...
- crtc_state->state
+ state
  ...
 }

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201102133834.1176740-3-maxime@cerno.tech
2020-11-03 12:20:09 +01:00
..
amd drm/atomic: Pass the full state to CRTC atomic_check 2020-11-02 12:34:49 +01:00
arc
arm drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
armada drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
aspeed
ast drm/ast: Support 1600x900 with 108MHz PCLK 2020-11-02 14:04:52 +01:00
atmel-hlcdc drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
bochs
bridge Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
etnaviv Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
exynos drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
fsl-dcu drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
gma500
hisilicon drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
i2c
i810
i915 drm: Remove SCATTERLIST_MAX_SEGMENT 2020-11-02 14:42:57 +01:00
imx drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
ingenic drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
lib
lima
mcde drm/mcde: Fix handling of platform_get_irq() error 2020-10-17 09:32:56 +02:00
mediatek drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
meson drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
mga
mgag200
msm drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
mxsfb drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
nouveau drm/nouveau/kms/nv50-: Use state helper instead of crtc pointer 2020-11-03 12:20:09 +01:00
omapdrm drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
panel drm/panel: mantix: Fix panel reset 2020-10-23 10:05:17 +02:00
panfrost drm/panfrost: Remove unused variables in panfrost_job_close() 2020-11-03 09:16:24 +01:00
pl111
qxl drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
r128
radeon Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
rcar-du drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
rockchip drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
savage
scheduler Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
selftests
shmobile
sis
sti drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
stm drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
sun4i drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
tdfx
tegra drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
tidss drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
tilcdc drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
tiny
ttm Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
tve200 drm/tve200: Fix handling of platform_get_irq() error 2020-10-17 09:33:01 +02:00
udl
v3d drm/v3d: Fix double free in v3d_submit_cl_ioctl() 2020-10-26 11:43:31 +01:00
vboxvideo drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
vc4 drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
vgem
via drm/via: reduce no need mutex_lock area 2020-10-17 10:10:24 +02:00
virtio drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
vkms drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
vmwgfx drm: Remove SCATTERLIST_MAX_SEGMENT 2020-11-02 14:42:57 +01:00
xen Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
xlnx drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
zte drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
drm_agpsupport.c
drm_atomic.c
drm_atomic_helper.c drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_auth.c
drm_blend.c
drm_bridge.c
drm_bridge_connector.c gpu/drm: delete same check in if condition 2020-11-02 14:04:53 +01:00
drm_bufs.c
drm_cache.c
drm_client.c
drm_client_modeset.c
drm_color_mgmt.c
drm_connector.c drm: document that user-space should avoid parsing EDIDs 2020-10-22 13:49:14 +02:00
drm_context.c
drm_crtc.c
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_damage_helper.c
drm_debugfs.c
drm_debugfs_crc.c
drm_dma.c
drm_dp_aux_dev.c
drm_dp_cec.c
drm_dp_dual_mode_helper.c
drm_dp_helper.c drm/dp: fix kernel-doc warnings at drm_dp_helper.c 2020-10-27 11:20:36 +01:00
drm_dp_mst_topology.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
drm_dp_mst_topology_internal.h
drm_drv.c
drm_dsc.c
drm_dumb_buffers.c
drm_edid.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
drm_file.c
drm_flip_work.c
drm_format_helper.c
drm_fourcc.c drm/fourcc: Add AXBXGXRX106106106106 format 2020-10-20 20:51:42 +01:00
drm_framebuffer.c
drm_gem.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
drm_gem_cma_helper.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
drm_gem_ttm_helper.c
drm_gem_vram_helper.c drm/vram_helpers: drop ttm_page_alloc.h include 2020-10-29 15:57:47 +01:00
drm_hashtab.c
drm_hdcp.c
drm_internal.h drm: Give irq_by_busid drm_legacy_ prefix 2020-10-21 18:05:11 +02:00
drm_ioc32.c
drm_ioctl.c drm: Give irq_by_busid drm_legacy_ prefix 2020-10-21 18:05:11 +02:00
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy.h
drm_legacy_misc.c
drm_lock.c
drm_managed.c
drm_memory.c
drm_mipi_dbi.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c
drm_panel.c
drm_panel_orientation_quirks.c
drm_pci.c drm: Give irq_by_busid drm_legacy_ prefix 2020-10-21 18:05:11 +02:00
drm_plane.c
drm_plane_helper.c
drm_prime.c drm: Remove SCATTERLIST_MAX_SEGMENT 2020-11-02 14:42:57 +01:00
drm_print.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_scdc_helper.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
drm_syncobj.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c
Kconfig drm/ttm: nuke old page allocator 2020-10-29 15:57:57 +01:00
Makefile