linux/drivers/gpu/drm/hisilicon/hibmc
Ville Syrjälä b00c600e91 drm: Nuke fb->depth
Replace uses of fb->depth with fb->format->depth. Less duplicate
information is a good thing.

@@
struct drm_framebuffer *fb;
expression E;
@@
 drm_helper_mode_fill_fb_struct(...) {
	...
-	fb->depth = E;
	...
 }

@@
struct nouveau_framebuffer *fb;
@@
- fb->base.depth
+ fb->base.format->depth

@@
struct drm_framebuffer fb;
@@
- fb.depth
+ fb.format->depth

@@
struct drm_framebuffer *fb;
@@
- fb->depth
+ fb->format->depth

@@
struct drm_framebuffer fb;
@@
- (fb.format->depth)
+ fb.format->depth

@@
struct drm_framebuffer *fb;
@@
- (fb->format->depth)
+ fb->format->depth

@@
@@
 struct drm_framebuffer {
	 ...
-	 unsigned int depth;
	 ...
 };

v2: Drop the vmw stuff (Daniel)
    Rerun spatch due to code changes

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1481751095-18249-1-git-send-email-ville.syrjala@linux.intel.com
2016-12-15 14:55:33 +02:00
..
hibmc_drm_de.c drm/hisilicon/hibmc: Add support for display engine 2016-11-17 15:26:25 +08:00
hibmc_drm_drv.c drm/hisilicon/hibmc: mark PM functions __maybe_unused 2016-11-25 07:58:55 +01:00
hibmc_drm_drv.h drm/hisilicon/hibmc: Add support for vblank interrupt 2016-11-17 15:26:27 +08:00
hibmc_drm_fbdev.c drm: Nuke fb->depth 2016-12-15 14:55:33 +02:00
hibmc_drm_regs.h
hibmc_drm_vdac.c drm: Make the connector .detect() callback optional 2016-12-01 10:05:53 -05:00
hibmc_ttm.c drm: Pass 'dev' to drm_helper_mode_fill_fb_struct() 2016-12-15 14:03:30 +02:00
Kconfig
Makefile drm/hisilicon/hibmc: Add support for VDAC 2016-11-17 15:26:26 +08:00