summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2009-07-26 12:05:25 +0200
committerAnatolij Gustschin <agust@denx.de>2009-07-26 13:18:43 +0200
commit04538cdb752eeea8fd23cf7ac3394439f189fb77 (patch)
treea99f85323745c8b82a98c83a7be56613a6c02c3e
parent50217deeb07911d686790d34d468eb9a5245f68d (diff)
downloadu-boot-imx-04538cdb752eeea8fd23cf7ac3394439f189fb77.zip
u-boot-imx-04538cdb752eeea8fd23cf7ac3394439f189fb77.tar.gz
u-boot-imx-04538cdb752eeea8fd23cf7ac3394439f189fb77.tar.bz2
video: bus_vcxk.c: fix style issues added by 50217dee
Signed-off-by: Anatolij Gustschin <agust@denx.de>
-rw-r--r--drivers/video/bus_vcxk.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/video/bus_vcxk.c b/drivers/video/bus_vcxk.c
index b7875de..b3b53e1 100644
--- a/drivers/video/bus_vcxk.c
+++ b/drivers/video/bus_vcxk.c
@@ -131,7 +131,7 @@ int vcxk_init(unsigned long width, unsigned long height)
#endif
#ifdef CONFIG_SYS_VCXK_DOUBLEBUFFERED
- double_bws_word = (u_short *) double_bws;
+ double_bws_word = (u_short *)double_bws;
double_bws_long = (u_long *)double_bws;
debug("%lx %lx %lx \n", double_bws, double_bws_word, double_bws_long);
#endif
@@ -152,7 +152,8 @@ int vcxk_init(unsigned long width, unsigned long height)
vcxk_bws_long[1] = 0x0;
vcxk_bws_long[1] = 0x55AAAA55;
vcxk_bws_long[5] = 0x0;
- if (vcxk_bws_long[1] == 0x55AAAA55) VC4K16 = 1;
+ if (vcxk_bws_long[1] == 0x55AAAA55)
+ VC4K16 = 1;
#else
VC4K16 = 1;
debug("No autodetect: use vc4k\n");
@@ -261,6 +262,7 @@ void vcxk_cls(void)
void vcxk_clear(void)
{
int cnt;
+
for (cnt = 0; cnt < (16384 / 4); cnt++) {
VCXK_BWS_LONG(cnt, 0)
}
@@ -317,7 +319,8 @@ int vcxk_request(void)
int vcxk_acknowledge_wait(void)
{
- while (VCXK_ACKNOWLEDGE);
+ while (VCXK_ACKNOWLEDGE)
+ ;
return 1;
}
@@ -332,7 +335,7 @@ int vcxk_acknowledge_wait(void)
***
*/
-void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth,
+void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth,
unsigned long cp_width, unsigned long cp_height)
{
unsigned char *lineptr;
@@ -346,7 +349,8 @@ void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth,
else
vcxk_setpixel(xcnt, ycnt-1, 0);
- if ((xcnt % 8) == 7) lineptr++;
+ if ((xcnt % 8) == 7)
+ lineptr++;
} /* endfor xcnt */
dataptr = dataptr + linewidth;
} /* endfor ycnt */
@@ -403,12 +407,12 @@ int vcxk_display_bitmap(ulong addr, int x, int y)
if (c_height < height)
dataptr = dataptr + lw * (height - c_height);
switch (bpp) {
- case 1:
- vcxk_draw_mono(dataptr, lw, c_width, c_height);
- break;
- default:
- printf("Error: %ld bit per pixel "
- "not supported by VCxK\n", bpp);
+ case 1:
+ vcxk_draw_mono(dataptr, lw, c_width, c_height);
+ break;
+ default:
+ printf("Error: %ld bit per pixel "
+ "not supported by VCxK\n", bpp);
return 0;
}
} else {