Commit f4098b07 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Stefan Agner
Browse files

drm: mxsfb: Remove mxsfb_devdata unused fields



The debug0 and ipversion fields of the mxsfb_devdata structure are
unused. Remove them.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarStefan Agner <stefan@agner.ch>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200727020654.8231-16-laurent.pinchart@ideasonboard.com
parent b9f59376
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -42,19 +42,15 @@ static const struct mxsfb_devdata mxsfb_devdata[] = {
		.transfer_count	= LCDC_V3_TRANSFER_COUNT,
		.transfer_count	= LCDC_V3_TRANSFER_COUNT,
		.cur_buf	= LCDC_V3_CUR_BUF,
		.cur_buf	= LCDC_V3_CUR_BUF,
		.next_buf	= LCDC_V3_NEXT_BUF,
		.next_buf	= LCDC_V3_NEXT_BUF,
		.debug0		= LCDC_V3_DEBUG0,
		.hs_wdth_mask	= 0xff,
		.hs_wdth_mask	= 0xff,
		.hs_wdth_shift	= 24,
		.hs_wdth_shift	= 24,
		.ipversion	= 3,
	},
	},
	[MXSFB_V4] = {
	[MXSFB_V4] = {
		.transfer_count	= LCDC_V4_TRANSFER_COUNT,
		.transfer_count	= LCDC_V4_TRANSFER_COUNT,
		.cur_buf	= LCDC_V4_CUR_BUF,
		.cur_buf	= LCDC_V4_CUR_BUF,
		.next_buf	= LCDC_V4_NEXT_BUF,
		.next_buf	= LCDC_V4_NEXT_BUF,
		.debug0		= LCDC_V4_DEBUG0,
		.hs_wdth_mask	= 0x3fff,
		.hs_wdth_mask	= 0x3fff,
		.hs_wdth_shift	= 18,
		.hs_wdth_shift	= 18,
		.ipversion	= 4,
	},
	},
};
};


+0 −2
Original line number Original line Diff line number Diff line
@@ -19,10 +19,8 @@ struct mxsfb_devdata {
	unsigned int	 transfer_count;
	unsigned int	 transfer_count;
	unsigned int	 cur_buf;
	unsigned int	 cur_buf;
	unsigned int	 next_buf;
	unsigned int	 next_buf;
	unsigned int	 debug0;
	unsigned int	 hs_wdth_mask;
	unsigned int	 hs_wdth_mask;
	unsigned int	 hs_wdth_shift;
	unsigned int	 hs_wdth_shift;
	unsigned int	 ipversion;
};
};


struct mxsfb_drm_private {
struct mxsfb_drm_private {