diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-19 05:40:31 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:41:08 -0400 |
commit | d272f428fac77ec57049a3293583ab3353928b1c (patch) | |
tree | 10e4e3bf360c7e288003de7d070a9da0e4cd98f2 /drivers | |
parent | e1d1144eb92e69394958e59ff2a0fd22d58094d4 (diff) |
fbdev: sh_mobile_meram: Add _cfg suffix to struct sh_mobile_meram_icb
The structure describe ICB configuration, no ICB objects themselves.
Rename it to sh_mobile_meram_icb_cfg in preparation for the addition of
an ICB structure.
All the structure fields are unsigned integers, make them so.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/sh_mobile_meram.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c index dbf5c43852bb..2ad5a454fa2e 100644 --- a/drivers/video/sh_mobile_meram.c +++ b/drivers/video/sh_mobile_meram.c | |||
@@ -156,7 +156,7 @@ static inline unsigned long meram_read_reg(void __iomem *base, int off) | |||
156 | */ | 156 | */ |
157 | 157 | ||
158 | static inline int meram_check_overlap(struct sh_mobile_meram_priv *priv, | 158 | static inline int meram_check_overlap(struct sh_mobile_meram_priv *priv, |
159 | struct sh_mobile_meram_icb *new) | 159 | struct sh_mobile_meram_icb_cfg *new) |
160 | { | 160 | { |
161 | int i; | 161 | int i; |
162 | int used_start, used_end, meram_start, meram_end; | 162 | int used_start, used_end, meram_start, meram_end; |
@@ -188,7 +188,7 @@ static inline int meram_check_overlap(struct sh_mobile_meram_priv *priv, | |||
188 | */ | 188 | */ |
189 | 189 | ||
190 | static inline void meram_mark(struct sh_mobile_meram_priv *priv, | 190 | static inline void meram_mark(struct sh_mobile_meram_priv *priv, |
191 | struct sh_mobile_meram_icb *new) | 191 | struct sh_mobile_meram_icb_cfg *new) |
192 | { | 192 | { |
193 | int n; | 193 | int n; |
194 | 194 | ||
@@ -211,7 +211,7 @@ static inline void meram_mark(struct sh_mobile_meram_priv *priv, | |||
211 | */ | 211 | */ |
212 | 212 | ||
213 | static inline void meram_unmark(struct sh_mobile_meram_priv *priv, | 213 | static inline void meram_unmark(struct sh_mobile_meram_priv *priv, |
214 | struct sh_mobile_meram_icb *icb) | 214 | struct sh_mobile_meram_icb_cfg *icb) |
215 | { | 215 | { |
216 | int i; | 216 | int i; |
217 | unsigned long pattern; | 217 | unsigned long pattern; |
@@ -303,7 +303,7 @@ static inline void meram_get_next_icb_addr(struct sh_mobile_meram_info *pdata, | |||
303 | */ | 303 | */ |
304 | 304 | ||
305 | static int meram_init(struct sh_mobile_meram_priv *priv, | 305 | static int meram_init(struct sh_mobile_meram_priv *priv, |
306 | struct sh_mobile_meram_icb *icb, | 306 | struct sh_mobile_meram_icb_cfg *icb, |
307 | int xres, int yres, int *out_pitch) | 307 | int xres, int yres, int *out_pitch) |
308 | { | 308 | { |
309 | unsigned long total_byte_count = MERAM_CALC_BYTECOUNT(xres, yres); | 309 | unsigned long total_byte_count = MERAM_CALC_BYTECOUNT(xres, yres); |
@@ -370,7 +370,7 @@ static int meram_init(struct sh_mobile_meram_priv *priv, | |||
370 | } | 370 | } |
371 | 371 | ||
372 | static void meram_deinit(struct sh_mobile_meram_priv *priv, | 372 | static void meram_deinit(struct sh_mobile_meram_priv *priv, |
373 | struct sh_mobile_meram_icb *icb) | 373 | struct sh_mobile_meram_icb_cfg *icb) |
374 | { | 374 | { |
375 | /* disable ICB */ | 375 | /* disable ICB */ |
376 | meram_write_icb(priv->base, icb->cache_icb, MExxCTL, | 376 | meram_write_icb(priv->base, icb->cache_icb, MExxCTL, |