linux_dsm_epyc7002/drivers/gpu/drm/msm/mdp/mdp4
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
..
mdp4_crtc.c drm/msm: convert iova to 64b 2016-11-28 15:14:08 -05:00
mdp4_dsi_encoder.c drm/msm/mdp: removed optional dummy encoder mode_fixup function. 2016-02-16 15:33:21 +01:00
mdp4_dtv_encoder.c drm/msm/mdp4: Clean up some MDP4 clocks 2016-07-16 10:08:45 -04:00
mdp4_irq.c drm/msm: module param to dump state on error irq 2016-11-08 16:38:03 -05:00
mdp4_kms.c drm/msm: support multiple address spaces 2016-11-27 11:23:09 -05:00
mdp4_kms.h drm/msm: convert iova to 64b 2016-11-28 15:14:08 -05:00
mdp4_lcdc_encoder.c drm/msm/mdp4: mark symbols static where possible 2016-09-15 17:21:11 -04:00
mdp4_lvds_connector.c drm: msm: Rely on the default ->best_encoder() behavior where appropriate 2016-06-09 08:43:26 +02:00
mdp4_lvds_pll.c drm/msm/mdp4: add LVDS panel support 2014-09-10 11:19:07 -04:00
mdp4_plane.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
mdp4.xml.h drm/msm: update generated headers 2016-11-28 15:14:10 -05:00