diff options
author | Anatolij Gustschin <agust@denx.de> | 2012-04-27 04:41:06 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-05-25 09:15:10 +0200 |
commit | 095407da5647053ec865437d02f2f5cc41ac31b3 (patch) | |
tree | 74cd1be909baeab4b07061ac6ae5197fd2881312 /common/lcd.c | |
parent | de3b49c4dd5c9bf1b6bf9e91b86f58d7a83174d5 (diff) | |
download | u-boot-imx-095407da5647053ec865437d02f2f5cc41ac31b3.zip u-boot-imx-095407da5647053ec865437d02f2f5cc41ac31b3.tar.gz u-boot-imx-095407da5647053ec865437d02f2f5cc41ac31b3.tar.bz2 |
common/lcd.c: use ARRAY_SIZE
Use available macro for obtaining the size of bmp_logo_palette[]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'common/lcd.c')
-rw-r--r-- | common/lcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lcd.c b/common/lcd.c index bf1a6a9..0ea45d0 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -523,7 +523,7 @@ void bitmap_plot (int x, int y) debug ("Logo: width %d height %d colors %d cmap %d\n", BMP_LOGO_WIDTH, BMP_LOGO_HEIGHT, BMP_LOGO_COLORS, - (int)(sizeof(bmp_logo_palette)/(sizeof(ushort)))); + ARRAY_SIZE(bmp_logo_palette)); bmap = &bmp_logo_bitmap[0]; fb = (uchar *)(lcd_base + y * lcd_line_length + x); @@ -548,7 +548,7 @@ void bitmap_plot (int x, int y) WATCHDOG_RESET(); /* Set color map */ - for (i=0; i<(sizeof(bmp_logo_palette)/(sizeof(ushort))); ++i) { + for (i = 0; i < ARRAY_SIZE(bmp_logo_palette); ++i) { ushort colreg = bmp_logo_palette[i]; #ifdef CONFIG_ATMEL_LCD uint lut_entry; |