From fc9e78e6b3d2ba2e96426527b8231f6b7c7b7b96 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 29 Nov 2011 16:05:36 +0100 Subject: fbdev: sh_mobile_lcdc: Store the format in struct sh_mobile_lcdc_chan Store the active format in the channel structure, and use it instead of parsing info->var all over the place when the format is needed. Signed-off-by: Laurent Pinchart --- drivers/video/sh_mobile_lcdcfb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/video/sh_mobile_lcdcfb.h') diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h index 8e0d0099940b..5ef7559b88c1 100644 --- a/drivers/video/sh_mobile_lcdcfb.h +++ b/drivers/video/sh_mobile_lcdcfb.h @@ -17,9 +17,10 @@ enum { LDDCKPAT1R, LDDCKPAT2R, LDMT1R, LDMT2R, LDMT3R, LDDFR, LDSM1R, struct backlight_device; struct fb_info; struct module; +struct sh_mobile_lcdc_chan; struct sh_mobile_lcdc_entity; +struct sh_mobile_lcdc_format_info; struct sh_mobile_lcdc_priv; -struct sh_mobile_lcdc_chan; #define SH_MOBILE_LCDC_DISPLAY_DISCONNECTED 0 #define SH_MOBILE_LCDC_DISPLAY_CONNECTED 1 @@ -70,6 +71,7 @@ struct sh_mobile_lcdc_chan { wait_queue_head_t frame_end_wait; struct completion vsync_completion; + const struct sh_mobile_lcdc_format_info *format; unsigned long base_addr_y; unsigned long base_addr_c; unsigned int pitch; -- cgit v1.2.3-59-g8ed1b