diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-11-30 17:07:30 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:40:58 -0400 |
commit | 58f03d998de08bb15ce50ad875e41bdc281d77dd (patch) | |
tree | 9988a2afc6c5946aeec3ba2cd923fc5e82572562 /drivers/video/sh_mobile_lcdcfb.h | |
parent | e8363140c02c92c122210e03103aef72dd836664 (diff) |
fbdev: sh_mobile_lcdc: Store configuration in channel structure
Store the frame buffer configuration (colorspace, visible/virtual
horizontal and vertical resolutions and line pitch) in the
sh_mobile_lcdc_chan structure, and use it instead of accessing fb_info.
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 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h index cc22b9eaaf0a..19a4cd74c89a 100644 --- a/drivers/video/sh_mobile_lcdcfb.h +++ b/drivers/video/sh_mobile_lcdcfb.h | |||
@@ -74,9 +74,15 @@ struct sh_mobile_lcdc_chan { | |||
74 | struct completion vsync_completion; | 74 | struct completion vsync_completion; |
75 | 75 | ||
76 | const struct sh_mobile_lcdc_format_info *format; | 76 | const struct sh_mobile_lcdc_format_info *format; |
77 | u32 colorspace; | ||
78 | unsigned int xres; | ||
79 | unsigned int xres_virtual; | ||
80 | unsigned int yres; | ||
81 | unsigned int yres_virtual; | ||
82 | unsigned int pitch; | ||
83 | |||
77 | unsigned long base_addr_y; | 84 | unsigned long base_addr_y; |
78 | unsigned long base_addr_c; | 85 | unsigned long base_addr_c; |
79 | unsigned int pitch; | ||
80 | 86 | ||
81 | int (*notify)(struct sh_mobile_lcdc_chan *ch, | 87 | int (*notify)(struct sh_mobile_lcdc_chan *ch, |
82 | enum sh_mobile_lcdc_entity_event event, | 88 | enum sh_mobile_lcdc_entity_event event, |