diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-11-29 08:03:17 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:40:55 -0400 |
commit | 740f802af2d8c46f1423b6b3daa33e4e1ea223f0 (patch) | |
tree | 3cc99631d63e3c29db2e7dd1d9cfff25adf323ab /drivers/video/sh_mobile_lcdcfb.h | |
parent | 93ff259846a774ff37dca54792c5a3a6425882c0 (diff) |
fbdev: sh_mobile_lcdc: Reorganize the sh_mobile_lcdc_chan structure
Group fields by purpose, and make the separation between core fields and
FB-related fields clear.
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 | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h index c1753877b4ec..8e0d0099940b 100644 --- a/drivers/video/sh_mobile_lcdcfb.h +++ b/drivers/video/sh_mobile_lcdcfb.h | |||
@@ -53,30 +53,22 @@ struct sh_mobile_lcdc_entity { | |||
53 | struct sh_mobile_lcdc_chan { | 53 | struct sh_mobile_lcdc_chan { |
54 | struct sh_mobile_lcdc_priv *lcdc; | 54 | struct sh_mobile_lcdc_priv *lcdc; |
55 | struct sh_mobile_lcdc_entity *tx_dev; | 55 | struct sh_mobile_lcdc_entity *tx_dev; |
56 | struct sh_mobile_lcdc_chan_cfg cfg; | ||
56 | 57 | ||
57 | unsigned long *reg_offs; | 58 | unsigned long *reg_offs; |
58 | unsigned long ldmt1r_value; | 59 | unsigned long ldmt1r_value; |
59 | unsigned long enabled; /* ME and SE in LDCNT2R */ | 60 | unsigned long enabled; /* ME and SE in LDCNT2R */ |
60 | struct sh_mobile_lcdc_chan_cfg cfg; | 61 | int meram_enabled; |
61 | u32 pseudo_palette[PALETTE_NR]; | 62 | |
62 | struct fb_info *info; | 63 | struct mutex open_lock; /* protects the use counter */ |
63 | struct backlight_device *bl; | 64 | int use_count; |
65 | |||
64 | dma_addr_t dma_handle; | 66 | dma_addr_t dma_handle; |
65 | struct fb_deferred_io defio; | ||
66 | struct scatterlist *sglist; | ||
67 | unsigned long frame_end; | ||
68 | unsigned long pan_offset; | 67 | unsigned long pan_offset; |
68 | |||
69 | unsigned long frame_end; | ||
69 | wait_queue_head_t frame_end_wait; | 70 | wait_queue_head_t frame_end_wait; |
70 | struct completion vsync_completion; | 71 | struct completion vsync_completion; |
71 | struct { | ||
72 | unsigned int width; | ||
73 | unsigned int height; | ||
74 | struct fb_videomode mode; | ||
75 | } display; | ||
76 | int use_count; | ||
77 | int blank_status; | ||
78 | struct mutex open_lock; /* protects the use counter */ | ||
79 | int meram_enabled; | ||
80 | 72 | ||
81 | unsigned long base_addr_y; | 73 | unsigned long base_addr_y; |
82 | unsigned long base_addr_c; | 74 | unsigned long base_addr_c; |
@@ -86,6 +78,21 @@ struct sh_mobile_lcdc_chan { | |||
86 | enum sh_mobile_lcdc_entity_event event, | 78 | enum sh_mobile_lcdc_entity_event event, |
87 | const struct fb_videomode *mode, | 79 | const struct fb_videomode *mode, |
88 | const struct fb_monspecs *monspec); | 80 | const struct fb_monspecs *monspec); |
81 | |||
82 | /* Backlight */ | ||
83 | struct backlight_device *bl; | ||
84 | |||
85 | /* FB */ | ||
86 | struct fb_info *info; | ||
87 | u32 pseudo_palette[PALETTE_NR]; | ||
88 | struct { | ||
89 | unsigned int width; | ||
90 | unsigned int height; | ||
91 | struct fb_videomode mode; | ||
92 | } display; | ||
93 | struct fb_deferred_io defio; | ||
94 | struct scatterlist *sglist; | ||
95 | int blank_status; | ||
89 | }; | 96 | }; |
90 | 97 | ||
91 | #endif | 98 | #endif |