<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/gpu/drm/tilcdc/tilcdc_plane.c, branch v5.7</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>drm/tilcdc: plane: Make structure tilcdc_plane_funcs constant</title>
<updated>2019-10-07T18:37:20+00:00</updated>
<author>
<name>Nishka Dasgupta</name>
<email>nishkadg.linux@gmail.com</email>
</author>
<published>2019-08-13T09:05:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=fba3baa8d2be7b37748e0ed8345d2d3d6f17f9fd'/>
<id>fba3baa8d2be7b37748e0ed8345d2d3d6f17f9fd</id>
<content type='text'>
The static structure tilcdc_plane_funcs, of type drm_plane_funcs, is
used only when passed the fourth argument to drm_plane_init(); however,
this fourth parameter is declared as const in the function definition.
Hence make tilcdc_plane_funcs constant as well.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta &lt;nishkadg.linux@gmail.com&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20190813090503.9063-1-nishkadg.linux@gmail.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The static structure tilcdc_plane_funcs, of type drm_plane_funcs, is
used only when passed the fourth argument to drm_plane_init(); however,
this fourth parameter is declared as const in the function definition.
Hence make tilcdc_plane_funcs constant as well.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta &lt;nishkadg.linux@gmail.com&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20190813090503.9063-1-nishkadg.linux@gmail.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge v5.3-rc1 into drm-misc-next</title>
<updated>2019-07-22T19:24:10+00:00</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime.ripard@bootlin.com</email>
</author>
<published>2019-07-22T19:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=03b0f2ce735e97e9f49790d4563c82515b8fa702'/>
<id>03b0f2ce735e97e9f49790d4563c82515b8fa702</id>
<content type='text'>
Noralf needs some SPI patches in 5.3 to merge some work on tinydrm.

Signed-off-by: Maxime Ripard &lt;maxime.ripard@bootlin.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Noralf needs some SPI patches in 5.3 to merge some work on tinydrm.

Signed-off-by: Maxime Ripard &lt;maxime.ripard@bootlin.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/tilcdc: drop use of drmP.h</title>
<updated>2019-07-17T10:52:55+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2019-07-16T06:42:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=fcb57664172edb25b2fdabb775b13662275abc5b'/>
<id>fcb57664172edb25b2fdabb775b13662275abc5b</id>
<content type='text'>
Dropped drmP.h and all other header files not used by tilcdc_drv.h.
Added the minimal includes and forwards to make the header file
self-contained.

Then dropped the remaining uses of drmP.h and fixed all fall-out.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Emil Velikov &lt;emil.velikov@collabora.com&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: David Airlie &lt;airlied@linux.ie&gt;
Cc: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20190716064220.18157-15-sam@ravnborg.org
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Dropped drmP.h and all other header files not used by tilcdc_drv.h.
Added the minimal includes and forwards to make the header file
self-contained.

Then dropped the remaining uses of drmP.h and fixed all fall-out.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Emil Velikov &lt;emil.velikov@collabora.com&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: David Airlie &lt;airlied@linux.ie&gt;
Cc: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20190716064220.18157-15-sam@ravnborg.org
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234</title>
<updated>2019-06-19T15:09:07+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-06-03T05:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=caab277b1de0a22b675c4c95fc7b285ec2eb5bf5'/>
<id>caab277b1de0a22b675c4c95fc7b285ec2eb5bf5</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 as
  published by the free software foundation this program is
  distributed in the hope that it will be useful but without any
  warranty without even the implied warranty of merchantability or
  fitness for a particular purpose see the gnu general public license
  for more details you should have received a copy of the gnu general
  public license along with this program if not see http www gnu org
  licenses

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 503 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190602204653.811534538@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 as
  published by the free software foundation this program is
  distributed in the hope that it will be useful but without any
  warranty without even the implied warranty of merchantability or
  fitness for a particular purpose see the gnu general public license
  for more details you should have received a copy of the gnu general
  public license along with this program if not see http www gnu org
  licenses

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 503 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190602204653.811534538@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm: Nuke drm_atomic_helper_plane_set_property</title>
<updated>2017-08-08T12:45:16+00:00</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2017-07-25T08:01:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e90271bc07edde70945662aaaad8860d59712234'/>
<id>e90271bc07edde70945662aaaad8860d59712234</id>
<content type='text'>
It's dead code, the core handles all this directly now. This also
allows us to unexport drm_atomic_plane_set_property.

Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Cc: Brian Starkey &lt;brian.starkey@arm.com&gt;
Cc: Mali DP Maintainers &lt;malidp@foss.arm.com&gt;
Cc: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Jani Nikula &lt;jani.nikula@linux.intel.com&gt;
Cc: Sean Paul &lt;seanpaul@chromium.org&gt;
Cc: David Airlie &lt;airlied@linux.ie&gt;
Cc: Inki Dae &lt;inki.dae@samsung.com&gt;
Cc: Joonyoung Shim &lt;jy0922.shim@samsung.com&gt;
Cc: Seung-Woo Kim &lt;sw0312.kim@samsung.com&gt;
Cc: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Cc: Kukjin Kim &lt;kgene@kernel.org&gt;
Cc: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Benjamin Gaignard &lt;benjamin.gaignard@linaro.org&gt;
Cc: Vincent Abriou &lt;vincent.abriou@st.com&gt;
Cc: Yannick Fertre &lt;yannick.fertre@st.com&gt;
Cc: Philippe Cornu &lt;philippe.cornu@st.com&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: "Ville Syrjälä" &lt;ville.syrjala@linux.intel.com&gt;
Cc: Rongrong Zou &lt;zourongrong@gmail.com&gt;
Cc: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Cc: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Cc: Eric Engestrom &lt;eric@engestrom.ch&gt;
Cc: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Cc: Archit Taneja &lt;architt@codeaurora.org&gt;
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: intel-gfx@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
Cc: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20170725080122.20548-6-daniel.vetter@ffwll.ch
Reviewed-by: Archit Taneja &lt;architt@codeaurora.org&gt;
Acked-by: Philippe Cornu &lt;philippe.cornu@st.com&gt;
Tested-by: Philippe Cornu &lt;philippe.cornu@st.com&gt;
Acked-by: Liviu Dudau &lt;Liviu.Dudau@arm.com&gt;
Acked-by: Vincent Abriou &lt;vincent.abriou@st.com&gt;
Reviewed-by: Maarten Lankhorst &lt;maarten.lankhorst@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's dead code, the core handles all this directly now. This also
allows us to unexport drm_atomic_plane_set_property.

Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Cc: Brian Starkey &lt;brian.starkey@arm.com&gt;
Cc: Mali DP Maintainers &lt;malidp@foss.arm.com&gt;
Cc: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Jani Nikula &lt;jani.nikula@linux.intel.com&gt;
Cc: Sean Paul &lt;seanpaul@chromium.org&gt;
Cc: David Airlie &lt;airlied@linux.ie&gt;
Cc: Inki Dae &lt;inki.dae@samsung.com&gt;
Cc: Joonyoung Shim &lt;jy0922.shim@samsung.com&gt;
Cc: Seung-Woo Kim &lt;sw0312.kim@samsung.com&gt;
Cc: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Cc: Kukjin Kim &lt;kgene@kernel.org&gt;
Cc: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Benjamin Gaignard &lt;benjamin.gaignard@linaro.org&gt;
Cc: Vincent Abriou &lt;vincent.abriou@st.com&gt;
Cc: Yannick Fertre &lt;yannick.fertre@st.com&gt;
Cc: Philippe Cornu &lt;philippe.cornu@st.com&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: "Ville Syrjälä" &lt;ville.syrjala@linux.intel.com&gt;
Cc: Rongrong Zou &lt;zourongrong@gmail.com&gt;
Cc: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Cc: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Cc: Eric Engestrom &lt;eric@engestrom.ch&gt;
Cc: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Cc: Archit Taneja &lt;architt@codeaurora.org&gt;
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: intel-gfx@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
Cc: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20170725080122.20548-6-daniel.vetter@ffwll.ch
Reviewed-by: Archit Taneja &lt;architt@codeaurora.org&gt;
Acked-by: Philippe Cornu &lt;philippe.cornu@st.com&gt;
Tested-by: Philippe Cornu &lt;philippe.cornu@st.com&gt;
Acked-by: Liviu Dudau &lt;Liviu.Dudau@arm.com&gt;
Acked-by: Vincent Abriou &lt;vincent.abriou@st.com&gt;
Reviewed-by: Maarten Lankhorst &lt;maarten.lankhorst@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm: Replace 'format-&gt;format' comparisons to just 'format' comparisons</title>
<updated>2016-12-15T12:55:34+00:00</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2016-11-18T19:53:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=dbd4d5761e1f06fd86abe0b256e049b501cea059'/>
<id>dbd4d5761e1f06fd86abe0b256e049b501cea059</id>
<content type='text'>
Rather than compare the format u32s of two format infos, we can direclty
compare the format info pointers themselves. Noramlly all the -&gt;format
pointers all point to somwehere in the big array, so this is a valid
way to test for equality.

Also drivers may want to point -&gt;format at a private format info struct
instead (eg. for special compressed formats with extra planes), so
just comparing the pixel format values wouldn't necessaritly even work.
But comparing the pointers will also take care of that case.

@@
struct drm_framebuffer *a;
struct drm_framebuffer *b;
@@
(
- a-&gt;format-&gt;format != b-&gt;format-&gt;format
+ a-&gt;format != b-&gt;format
|
- a-&gt;format-&gt;format == b-&gt;format-&gt;format
+ a-&gt;format == b-&gt;format
)

@@
struct drm_plane_state *a;
struct drm_plane_state *b;
@@
(
- a-&gt;fb-&gt;format-&gt;format != b-&gt;fb-&gt;format-&gt;format
+ a-&gt;fb-&gt;format != b-&gt;fb-&gt;format
|
- a-&gt;fb-&gt;format-&gt;format == b-&gt;fb-&gt;format-&gt;format
+ a-&gt;fb-&gt;format == b-&gt;fb-&gt;format
)

@@
struct drm_crtc *crtc;
struct drm_framebuffer *x;
@@
(
- crtc-&gt;primary-&gt;fb-&gt;format-&gt;format != x-&gt;format-&gt;format
+ crtc-&gt;primary-&gt;fb-&gt;format != x-&gt;format
|
- x-&gt;format-&gt;format != crtc-&gt;primary-&gt;fb-&gt;format-&gt;format
+ x-&gt;format != crtc-&gt;primary-&gt;fb-&gt;format
)

@@
struct drm_mode_set *set;
@@
- set-&gt;fb-&gt;format-&gt;format != set-&gt;crtc-&gt;primary-&gt;fb-&gt;format-&gt;format
+ set-&gt;fb-&gt;format != set-&gt;crtc-&gt;primary-&gt;fb-&gt;format

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Suggested-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1479498793-31021-35-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than compare the format u32s of two format infos, we can direclty
compare the format info pointers themselves. Noramlly all the -&gt;format
pointers all point to somwehere in the big array, so this is a valid
way to test for equality.

Also drivers may want to point -&gt;format at a private format info struct
instead (eg. for special compressed formats with extra planes), so
just comparing the pixel format values wouldn't necessaritly even work.
But comparing the pointers will also take care of that case.

@@
struct drm_framebuffer *a;
struct drm_framebuffer *b;
@@
(
- a-&gt;format-&gt;format != b-&gt;format-&gt;format
+ a-&gt;format != b-&gt;format
|
- a-&gt;format-&gt;format == b-&gt;format-&gt;format
+ a-&gt;format == b-&gt;format
)

@@
struct drm_plane_state *a;
struct drm_plane_state *b;
@@
(
- a-&gt;fb-&gt;format-&gt;format != b-&gt;fb-&gt;format-&gt;format
+ a-&gt;fb-&gt;format != b-&gt;fb-&gt;format
|
- a-&gt;fb-&gt;format-&gt;format == b-&gt;fb-&gt;format-&gt;format
+ a-&gt;fb-&gt;format == b-&gt;fb-&gt;format
)

@@
struct drm_crtc *crtc;
struct drm_framebuffer *x;
@@
(
- crtc-&gt;primary-&gt;fb-&gt;format-&gt;format != x-&gt;format-&gt;format
+ crtc-&gt;primary-&gt;fb-&gt;format != x-&gt;format
|
- x-&gt;format-&gt;format != crtc-&gt;primary-&gt;fb-&gt;format-&gt;format
+ x-&gt;format != crtc-&gt;primary-&gt;fb-&gt;format
)

@@
struct drm_mode_set *set;
@@
- set-&gt;fb-&gt;format-&gt;format != set-&gt;crtc-&gt;primary-&gt;fb-&gt;format-&gt;format
+ set-&gt;fb-&gt;format != set-&gt;crtc-&gt;primary-&gt;fb-&gt;format

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Suggested-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1479498793-31021-35-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm: Nuke fb-&gt;pixel_format</title>
<updated>2016-12-15T12:55:34+00:00</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2016-12-14T21:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=438b74a5497c36d6d59baded434002e30267cabe'/>
<id>438b74a5497c36d6d59baded434002e30267cabe</id>
<content type='text'>
Replace uses of fb-&gt;pixel_format with fb-&gt;format-&gt;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-&gt;pixel_format = E;
	...
 }

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

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

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

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

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

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

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

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

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

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt; (v1)
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481751175-18463-1-git-send-email-ville.syrjala@linux.intel.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace uses of fb-&gt;pixel_format with fb-&gt;format-&gt;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-&gt;pixel_format = E;
	...
 }

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

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

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

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

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

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

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

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

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

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt; (v1)
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481751175-18463-1-git-send-email-ville.syrjala@linux.intel.com
</pre>
</div>
</content>
</entry>
<entry>
<title>drm: Replace drm_format_plane_cpp() with fb-&gt;format-&gt;cpp[]</title>
<updated>2016-12-15T12:55:31+00:00</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2016-12-14T21:30:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=353c859899635ea911f6476a0194c7a32c0c09c2'/>
<id>353c859899635ea911f6476a0194c7a32c0c09c2</id>
<content type='text'>
Replace drm_format_plane_cpp(fb-&gt;pixel_format) with just
fb-&gt;format-&gt;cpp[]. Avoids the expensive format info lookup.

@@
struct drm_framebuffer *a;
struct drm_framebuffer b;
expression E;
@@
(
- drm_format_plane_cpp(a-&gt;pixel_format, E)
+ a-&gt;format-&gt;cpp[E]
|
- drm_format_plane_cpp(b.pixel_format, E)
+ b.format-&gt;cpp[E]
)

@@
struct drm_plane_state *a;
struct drm_plane_state b;
expression E;
@@
(
- drm_format_plane_cpp(a-&gt;fb-&gt;pixel_format, E)
+ a-&gt;fb-&gt;format-&gt;cpp[E]
|
- drm_format_plane_cpp(b.fb-&gt;pixel_format, E)
+ b.fb-&gt;format-&gt;cpp[E]
)

@@
struct drm_framebuffer *a;
identifier T;
expression E;
@@
  T = a-&gt;pixel_format
&lt;+...
- drm_format_plane_cpp(T, E)
+ a-&gt;format-&gt;cpp[E]
...+&gt;

@@
struct drm_framebuffer b;
identifier T;
expression E;
@@
  T = b.pixel_format
&lt;+...
- drm_format_plane_cpp(T, E)
+ b.format-&gt;cpp[E]
...+&gt;

v2: Rerun spatch due to code changes

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Suggested-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481751057-18123-1-git-send-email-ville.syrjala@linux.intel.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace drm_format_plane_cpp(fb-&gt;pixel_format) with just
fb-&gt;format-&gt;cpp[]. Avoids the expensive format info lookup.

@@
struct drm_framebuffer *a;
struct drm_framebuffer b;
expression E;
@@
(
- drm_format_plane_cpp(a-&gt;pixel_format, E)
+ a-&gt;format-&gt;cpp[E]
|
- drm_format_plane_cpp(b.pixel_format, E)
+ b.format-&gt;cpp[E]
)

@@
struct drm_plane_state *a;
struct drm_plane_state b;
expression E;
@@
(
- drm_format_plane_cpp(a-&gt;fb-&gt;pixel_format, E)
+ a-&gt;fb-&gt;format-&gt;cpp[E]
|
- drm_format_plane_cpp(b.fb-&gt;pixel_format, E)
+ b.fb-&gt;format-&gt;cpp[E]
)

@@
struct drm_framebuffer *a;
identifier T;
expression E;
@@
  T = a-&gt;pixel_format
&lt;+...
- drm_format_plane_cpp(T, E)
+ a-&gt;format-&gt;cpp[E]
...+&gt;

@@
struct drm_framebuffer b;
identifier T;
expression E;
@@
  T = b.pixel_format
&lt;+...
- drm_format_plane_cpp(T, E)
+ b.format-&gt;cpp[E]
...+&gt;

v2: Rerun spatch due to code changes

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Suggested-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481751057-18123-1-git-send-email-ville.syrjala@linux.intel.com
</pre>
</div>
</content>
</entry>
<entry>
<title>drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()</title>
<updated>2016-10-18T09:51:57+00:00</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart@ideasonboard.com</email>
</author>
<published>2016-10-17T22:41:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=59f11a43237fe08de8572b5be5d961d262ae770d'/>
<id>59f11a43237fe08de8572b5be5d961d262ae770d</id>
<content type='text'>
The driver needs the number of bytes per pixel, not the bpp and depth
info meant for fbdev compatibility. Use the right API.

In the tilcdc_crtc_mode_set() function compute the hardware register
value directly from the pixel format instead of computing the number of
bits per pixels first.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Signed-off-by: Archit Taneja &lt;architt@codeaurora.org&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-7-git-send-email-laurent.pinchart@ideasonboard.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The driver needs the number of bytes per pixel, not the bpp and depth
info meant for fbdev compatibility. Use the right API.

In the tilcdc_crtc_mode_set() function compute the hardware register
value directly from the pixel format instead of computing the number of
bits per pixels first.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Signed-off-by: Archit Taneja &lt;architt@codeaurora.org&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-7-git-send-email-laurent.pinchart@ideasonboard.com
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/tilcdc: Add blue-and-red-crossed devicetree property</title>
<updated>2016-09-01T19:32:11+00:00</updated>
<author>
<name>Jyri Sarha</name>
<email>jsarha@ti.com</email>
</author>
<published>2016-08-11T16:09:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=bcc5a6f5fc9f0d53aa896768d6f86d7e64d0b783'/>
<id>bcc5a6f5fc9f0d53aa896768d6f86d7e64d0b783</id>
<content type='text'>
Add "blue-and-red-wiring"-device tree property and update devicetree
binding document.

The red and blue components are reversed between 24 and 16 bit modes
on am335x LCDC output pins. To get 24 RGB format the red and blue
wires has to be crossed and this in turn causes 16 colors output to be
in BGR format. With straight wiring the 16 color is RGB and 24 bit is
BGR.

The new property describes whether the red and blue wires are crossed
or not. If the property is not present or its value is not recognized
the legacy mode is assumed. The legacy configuration supports RGB565,
RGB888 and XRGB8888 formats. However, depending on wiring, the red and
blue colors are swapped in either 16 or 24-bit color modes.

For more details see section 3.1.1 in AM335x Silicon Errata:
http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360

Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add "blue-and-red-wiring"-device tree property and update devicetree
binding document.

The red and blue components are reversed between 24 and 16 bit modes
on am335x LCDC output pins. To get 24 RGB format the red and blue
wires has to be crossed and this in turn causes 16 colors output to be
in BGR format. With straight wiring the 16 color is RGB and 24 bit is
BGR.

The new property describes whether the red and blue wires are crossed
or not. If the property is not present or its value is not recognized
the legacy mode is assumed. The legacy configuration supports RGB565,
RGB888 and XRGB8888 formats. However, depending on wiring, the red and
blue colors are swapped in either 16 or 24-bit color modes.

For more details see section 3.1.1 in AM335x Silicon Errata:
http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360

Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
