diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-11-29 16:05:36 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 22:40:56 +0100 |
commit | fc9e78e6b3d2ba2e96426527b8231f6b7c7b7b96 (patch) | |
tree | a846f4f8dba95e2d7c08784bf213cb5fd59059be /drivers/video/sh_mobile_lcdcfb.h | |
parent | 105784bbb47cd76f0fc32954b047a13b704fa840 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.h')
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; |