OpenCloudOS-Kernel/drivers/gpu/drm/omapdrm
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
..
displays drm/omap: display: use devm_of_find_backlight 2020-05-17 14:54:39 +02:00
dss Linux 5.9-rc4 2020-09-08 14:41:40 +10:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
TODO
omap_connector.c drm/omap: Use {} to zero initialize the mode 2020-07-24 23:01:46 +03:00
omap_connector.h drm/omap: Remove HPD, detect and EDID omapdss operations 2020-02-26 13:32:02 +02:00
omap_crtc.c drm: Use the state pointer directly in atomic_check 2020-11-03 12:20:09 +01:00
omap_crtc.h drm main pull request for v5.3-rc1 (sans mm changes) 2019-07-15 19:04:27 -07:00
omap_debugfs.c drm: convert .debugfs_init() hook to return void. 2020-03-18 17:53:28 +01:00
omap_dmm_priv.h drm/omap: partial workaround for DRA7xx DMM errata i878 2018-10-02 09:36:56 +03:00
omap_dmm_tiler.c drm/omap: dmm_tiler: Remove the dma_async_issue_pending() call 2020-02-11 09:29:01 +02:00
omap_dmm_tiler.h drm/omap: remove OMAP_BO_TILED define 2019-10-11 17:02:32 +03:00
omap_drv.c drm/omapdrm: Introduce GEM object functions 2020-09-25 09:21:10 +02:00
omap_drv.h drm: convert .debugfs_init() hook to return void. 2020-03-18 17:53:28 +01:00
omap_encoder.c drm/omap: dss: Remove unused omap_dss_device operations 2020-02-26 13:32:12 +02:00
omap_encoder.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_fb.c drm/omapdrm: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:34 +01:00
omap_fb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_fbdev.c drm/omapdrm: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:34 +01:00
omap_fbdev.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_gem.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
omap_gem.h drm/omapdrm: Introduce GEM object functions 2020-09-25 09:21:10 +02:00
omap_gem_dmabuf.c drm/omapdrm: Drop dma_buf->k(un)map 2019-11-25 22:36:14 +01:00
omap_irq.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_irq.h drm main pull request for v5.3-rc1 (sans mm changes) 2019-07-15 19:04:27 -07:00
omap_plane.c drm/omap: Add 'alpha' and 'pixel blend mode' plane properties 2019-08-23 10:15:11 +03:00
omap_plane.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
tcm-sita.c drm/omap: silence unititialized variable warning 2018-05-07 10:19:11 -04:00
tcm.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00