linux_dsm_epyc7002/drivers/gpu/drm/omapdrm
Ville Syrjälä 438b74a549 drm: Nuke fb->pixel_format
Replace uses of fb->pixel_format with fb->format->format.
Less duplicated information is a good thing.

Note that coccinelle failed to eliminate the
"/* fourcc format */" comment from drm_framebuffer.h, so I had
to do that part manually.

@@
struct drm_framebuffer *FB;
expression E;
@@
 drm_helper_mode_fill_fb_struct(...) {
	...
-	FB->pixel_format = E;
	...
 }

@@
struct drm_framebuffer *FB;
expression E;
@@
 i9xx_get_initial_plane_config(...) {
	...
-	FB->pixel_format = E;
	...
 }

@@
struct drm_framebuffer *FB;
expression E;
@@
 ironlake_get_initial_plane_config(...) {
	...
-	FB->pixel_format = E;
	...
 }

@@
struct drm_framebuffer *FB;
expression E;
@@
 skylake_get_initial_plane_config(...) {
	...
-	FB->pixel_format = E;
	...
 }

@@
struct drm_framebuffer *a;
struct drm_framebuffer b;
@@
(
- a->pixel_format
+ a->format->format
|
- b.pixel_format
+ b.format->format
)

@@
struct drm_plane_state *a;
struct drm_plane_state b;
@@
(
- a->fb->pixel_format
+ a->fb->format->format
|
- b.fb->pixel_format
+ b.fb->format->format
)

@@
struct drm_crtc *CRTC;
@@
(
- CRTC->primary->fb->pixel_format
+ CRTC->primary->fb->format->format
|
- CRTC->primary->state->fb->pixel_format
+ CRTC->primary->state->fb->format->format
)

@@
struct drm_mode_set *set;
@@
(
- set->fb->pixel_format
+ set->fb->format->format
|
- set->crtc->primary->fb->pixel_format
+ set->crtc->primary->fb->format->format
)

@@
@@
 struct drm_framebuffer {
	 ...
-	 uint32_t pixel_format;
	 ...
 };

v2: Fix commit message (Laurent)
    Rebase due to earlier removal of many fb->pixel_format uses,
    including the 'fb->format = drm_format_info(fb->format->format);'
    snafu
v3: Adjusted the semantic patch a bit and regenerated due to code
    changes

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1481751175-18463-1-git-send-email-ville.syrjala@linux.intel.com
2016-12-15 14:55:34 +02:00
..
displays drm/omap: tpd12s015: fix error handling 2016-12-08 13:42:58 +02:00
dss drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
Kconfig drm/omap: make fbdev support really optional 2016-07-18 09:11:34 +02:00
Makefile drm/omap: remove -Werror from Makefile 2016-03-03 17:38:46 +02:00
omap_connector.c drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
omap_crtc.c drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
omap_debugfs.c drm/omap: include linux/seq_file.h where needed 2016-05-31 08:30:14 +03:00
omap_dmm_priv.h drm/omap: fix race conditon in DMM 2015-03-24 13:50:59 +02:00
omap_dmm_tiler.c drm/omap: include linux/seq_file.h where needed 2016-05-31 08:30:14 +03:00
omap_dmm_tiler.h drm/omap: fix TILER on OMAP5 2015-03-24 13:50:55 +02:00
omap_drv.c drm/omap: fix primary-plane's possible_crtcs 2016-12-08 13:42:57 +02:00
omap_drv.h drm/omap: fix primary-plane's possible_crtcs 2016-12-08 13:42:57 +02:00
omap_encoder.c drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
omap_fb.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
omap_fbdev.c drm: Nuke fb->depth 2016-12-15 14:55:33 +02:00
omap_gem_dmabuf.c Merge tag 'topic/drm-misc-2016-03-22' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-03-24 08:41:59 +10:00
omap_gem.c drm/omap: omap_gem: Do not try to unmap page which is not mapped 2016-11-02 10:38:28 +02:00
omap_irq.c drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
omap_plane.c drm/omap: fix primary-plane's possible_crtcs 2016-12-08 13:42:57 +02:00
tcm-sita.c drm/omap: Use bitmaps for TILER placement 2015-12-31 11:25:47 +02:00
tcm-sita.h drm/omap: move out of staging 2013-02-16 17:38:06 -05:00
tcm.h drm/omap: Use bitmaps for TILER placement 2015-12-31 11:25:47 +02:00
TODO drm/omap: move out of staging 2013-02-16 17:38:06 -05:00