[PATCH 31/32] drm: Nuke fb->bits_per_pixel

2016-11-17 Thread Laurent Pinchart
Hi Ville, On Thursday 17 Nov 2016 20:35:46 Ville Syrjälä wrote: > On Thu, Nov 17, 2016 at 08:14:16PM +0200, Laurent Pinchart wrote: > > On Thursday 17 Nov 2016 18:14:30 ville.syrjala at linux.intel.com wrote: > >> From: Ville Syrjälä > >> > >> Replace uses of fb->bits_per_pixel with fb->form

[PATCH 31/32] drm: Nuke fb->bits_per_pixel

2016-11-17 Thread Ville Syrjälä
On Thu, Nov 17, 2016 at 08:14:16PM +0200, Laurent Pinchart wrote: > Hi Ville, > > Thank you for the patch. > > On Thursday 17 Nov 2016 18:14:30 ville.syrjala at linux.intel.com wrote: > > From: Ville Syrjälä > > > > Replace uses of fb->bits_per_pixel with fb->format->cpp[0]*8. > > Less duplic

[PATCH 31/32] drm: Nuke fb->bits_per_pixel

2016-11-17 Thread Laurent Pinchart
Hi Ville, Thank you for the patch. On Thursday 17 Nov 2016 18:14:30 ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Replace uses of fb->bits_per_pixel with fb->format->cpp[0]*8. > Less duplicated information is a good thing. > > Note that I didn't put parens around the cpp*

[PATCH 31/32] drm: Nuke fb->bits_per_pixel

2016-11-17 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä Replace uses of fb->bits_per_pixel with fb->format->cpp[0]*8. Less duplicated information is a good thing. Note that I didn't put parens around the cpp*8 in the below cocci script, on account of not wanting spurious parens all over the place. Instead I did the unsafe way, a