linux/drivers/gpu/drm/sti
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/sti: remove stih415-416 platform support 2016-09-20 15:03:33 +02:00
Makefile drm/sti: remove stih415-416 platform support 2016-09-20 15:03:33 +02:00
NOTES
sti_awg_utils.c drm/sti: adjust delay for AWG 2016-06-27 10:18:25 +02:00
sti_awg_utils.h drm: sti: add DVO output connector 2014-12-30 15:08:16 +01:00
sti_compositor.c drm/sti: remove stih415-416 platform support 2016-09-20 15:03:33 +02:00
sti_compositor.h drm/sti: fix compositor debugfs creation 2016-09-20 11:32:07 +02:00
sti_crtc.c drm/sti: fix compositor debugfs creation 2016-09-20 11:32:07 +02:00
sti_crtc.h drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
sti_cursor.c drm/sti: fix atomic_disable check 2016-09-20 11:32:05 +02:00
sti_cursor.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_drv.c Merge tag 'topic/drm-misc-2016-11-10' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-11-11 09:28:44 +10:00
sti_drv.h drm: sti: rework init sequence 2016-06-21 21:32:52 +02:00
sti_dvo.c drm/sti: Fix sparse warnings 2016-09-20 11:32:04 +02:00
sti_gdp.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
sti_gdp.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_hda.c drm: Make the connector .detect() callback optional 2016-12-01 10:05:53 -05:00
sti_hdmi.c drm/sti: remove stih415-416 platform support 2016-09-20 15:03:33 +02:00
sti_hdmi.h drm: sti: Add ASoC generic hdmi codec support. 2016-07-01 09:12:49 +02:00
sti_hdmi_tx3g4c28phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hqvdp.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
sti_hqvdp_lut.h drm: sti: add HQVDP plane 2014-12-11 14:00:13 +01:00
sti_mixer.c drm/sti: remove stih415-416 platform support 2016-09-20 15:03:33 +02:00
sti_mixer.h drm: sti: use late_register and early_unregister callbacks 2016-06-21 21:32:52 +02:00
sti_plane.c drm: sti: use generic zpos for plane 2016-07-29 10:02:51 +02:00
sti_plane.h drm: sti: use generic zpos for plane 2016-07-29 10:02:51 +02:00
sti_tvout.c drm/sti: remove stih415-416 platform support 2016-09-20 15:03:33 +02:00
sti_vid.c drm/sti: use valid video mode 2016-09-20 11:32:06 +02:00
sti_vid.h drm: sti: use late_register and early_unregister callbacks 2016-06-21 21:32:52 +02:00
sti_vtac.c drm/sti: Fix sparse warnings 2016-09-20 11:32:04 +02:00
sti_vtg.c drm/sti: Fix sparse warnings 2016-09-20 11:32:04 +02:00
sti_vtg.h drm/sti: update VTG timing programming 2016-02-26 10:03:57 +01:00