linux/drivers/gpu/drm/rcar-du
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
..
Kconfig drm/rcar-du: make fbdev support really optional 2016-07-15 10:28:27 -04:00
Makefile drm: rcar-du: Remove i2c slave encoder interface for hdmi encoder 2016-07-18 08:58:45 +05:30
rcar_du_crtc.c drm: rcar-du: Fix H/V sync signal polarity configuration 2016-11-15 01:44:50 +02:00
rcar_du_crtc.h drm: rcar-du: Expose the VSP1 compositor through KMS planes 2016-02-23 09:32:44 +02:00
rcar_du_drv.c Merge branch 'drm/next/du' of git://linuxtv.org/pinchartl/media into drm-next 2016-11-16 09:39:21 +10:00
rcar_du_drv.h drm: rcar: use generic code for managing zpos plane property 2016-07-29 10:03:10 +02:00
rcar_du_encoder.c drm: rcar-du: Remove i2c slave encoder interface for hdmi encoder 2016-07-18 08:58:45 +05:30
rcar_du_encoder.h drm: rcar-du: Remove i2c slave encoder interface for hdmi encoder 2016-07-18 08:58:45 +05:30
rcar_du_group.c drm: rcar-du: Fix dot clock routing configuration 2016-11-15 01:44:49 +02:00
rcar_du_group.h drm: rcar-du: Restart the DU group when a plane source changes 2016-02-20 02:58:55 +02:00
rcar_du_hdmienc.c drm: rcar-du: Bring HDMI encoder comments in line with the driver 2016-11-14 03:35:12 +02:00
rcar_du_hdmienc.h drm: rcar-du: Add HDMI encoder and connector support 2014-11-26 20:09:38 +02:00
rcar_du_kms.c Merge branch 'drm/next/du' of git://linuxtv.org/pinchartl/media into drm-next 2016-11-16 09:39:21 +10:00
rcar_du_kms.h drm/rcar-du: Update copyright notice 2014-09-15 11:34:06 +03:00
rcar_du_lvdscon.c drm: Make the connector .detect() callback optional 2016-12-01 10:05:53 -05:00
rcar_du_lvdscon.h drm: rcar-du: Constify node argument to rcar_du_lvds_connector_init() 2016-11-14 03:35:12 +02:00
rcar_du_lvdsenc.c drm: rcar-du: Fix LVDS start sequence on Gen3 2016-11-15 01:44:51 +02:00
rcar_du_lvdsenc.h drm: rcar-du: lvds: Avoid duplication of clock clamp code 2016-02-23 09:34:30 +02:00
rcar_du_plane.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
rcar_du_plane.h drm: rcar: use generic code for managing zpos plane property 2016-07-29 10:03:10 +02:00
rcar_du_regs.h rcar-du: add/rename DEFR6 TCON bits 2016-06-20 22:31:26 +03:00
rcar_du_vgacon.c drm: rcar-du: Rely on the default ->best_encoder() behavior 2016-06-10 17:24:26 +02:00
rcar_du_vgacon.h drm/rcar-du: Update copyright notice 2014-09-15 11:34:06 +03:00
rcar_du_vsp.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
rcar_du_vsp.h [media] drm: rcar-du: Add Z-order support for VSP planes 2016-06-17 08:17:12 -03:00
rcar_lvds_regs.h drm: rcar-du: lvds: Add R-Car Gen3 support 2016-02-23 09:34:32 +02:00