From 9ffd2e9bbfb7566daafd399da3bc2428ec54e748 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 19 Sep 2011 11:40:31 +0200 Subject: [PATCH] --- yaml --- r: 294262 b: refs/heads/master c: d272f428fac77ec57049a3293583ab3353928b1c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/video/sh_mobile_meram.c | 10 +++++----- trunk/include/video/sh_mobile_meram.h | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/[refs] b/[refs] index dda942b1e569..f267682e5e8d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e1d1144eb92e69394958e59ff2a0fd22d58094d4 +refs/heads/master: d272f428fac77ec57049a3293583ab3353928b1c diff --git a/trunk/drivers/video/sh_mobile_meram.c b/trunk/drivers/video/sh_mobile_meram.c index dbf5c43852bb..2ad5a454fa2e 100644 --- a/trunk/drivers/video/sh_mobile_meram.c +++ b/trunk/drivers/video/sh_mobile_meram.c @@ -156,7 +156,7 @@ static inline unsigned long meram_read_reg(void __iomem *base, int off) */ static inline int meram_check_overlap(struct sh_mobile_meram_priv *priv, - struct sh_mobile_meram_icb *new) + struct sh_mobile_meram_icb_cfg *new) { int i; 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, */ static inline void meram_mark(struct sh_mobile_meram_priv *priv, - struct sh_mobile_meram_icb *new) + struct sh_mobile_meram_icb_cfg *new) { int n; @@ -211,7 +211,7 @@ static inline void meram_mark(struct sh_mobile_meram_priv *priv, */ static inline void meram_unmark(struct sh_mobile_meram_priv *priv, - struct sh_mobile_meram_icb *icb) + struct sh_mobile_meram_icb_cfg *icb) { int i; unsigned long pattern; @@ -303,7 +303,7 @@ static inline void meram_get_next_icb_addr(struct sh_mobile_meram_info *pdata, */ static int meram_init(struct sh_mobile_meram_priv *priv, - struct sh_mobile_meram_icb *icb, + struct sh_mobile_meram_icb_cfg *icb, int xres, int yres, int *out_pitch) { unsigned long total_byte_count = MERAM_CALC_BYTECOUNT(xres, yres); @@ -370,7 +370,7 @@ static int meram_init(struct sh_mobile_meram_priv *priv, } static void meram_deinit(struct sh_mobile_meram_priv *priv, - struct sh_mobile_meram_icb *icb) + struct sh_mobile_meram_icb_cfg *icb) { /* disable ICB */ meram_write_icb(priv->base, icb->cache_icb, MExxCTL, diff --git a/trunk/include/video/sh_mobile_meram.h b/trunk/include/video/sh_mobile_meram.h index af602d602b28..caae558d52ae 100644 --- a/trunk/include/video/sh_mobile_meram.h +++ b/trunk/include/video/sh_mobile_meram.h @@ -25,17 +25,17 @@ struct sh_mobile_meram_info { }; /* icb config */ -struct sh_mobile_meram_icb { - int marker_icb; /* ICB # for Marker ICB */ - int cache_icb; /* ICB # for Cache ICB */ - int meram_offset; /* MERAM Buffer Offset to use */ - int meram_size; /* MERAM Buffer Size to use */ +struct sh_mobile_meram_icb_cfg { + unsigned int marker_icb; /* ICB # for Marker ICB */ + unsigned int cache_icb; /* ICB # for Cache ICB */ + unsigned int meram_offset; /* MERAM Buffer Offset to use */ + unsigned int meram_size; /* MERAM Buffer Size to use */ - int cache_unit; /* bytes to cache per ICB */ + unsigned int cache_unit; /* bytes to cache per ICB */ }; struct sh_mobile_meram_cfg { - struct sh_mobile_meram_icb icb[2]; + struct sh_mobile_meram_icb_cfg icb[2]; int pixelformat; int current_reg; };