summaryrefslogtreecommitdiff
path: root/scripts/basic/fixdep.c
diff options
context:
space:
mode:
authorNikita Kiryanov <[email protected]>2015-02-03 13:32:24 +0200
committerAnatolij Gustschin <[email protected]>2015-02-10 13:27:28 +0100
commita02e9481396bbd831d9bd970515f277de516fa28 (patch)
tree7a25c98d7723dc4d5e56e0bfd7db288ac9c7cac0 /scripts/basic/fixdep.c
parent27fad01b7fca1ed9ae946ced37c3d4bde828ba14 (diff)
lcd: atmel: introduce lcd_logo_set_cmap
Reduce the bitmap_plot #ifdef complexity by extracting Atmel-specific code for setting cmap into a new function lcd_logo_set_cmap(), which is implemented in atmel_lcdfb driver and defined as part of common/lcd.c api with a weak dummy version. In the Atmel implementation, ARRAY_SIZE(bmp_logo_palette) is switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which would cause a compilation error because the logo data and palette arrays would be defined twice. This is a step towards cleaning bitmap_plot() of platform-specific code. Signed-off-by: Nikita Kiryanov <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Bo Shen <[email protected]> Tested-by: Josh Wu <[email protected]> Cc: Bo Shen <[email protected]> Cc: Simon Glass <[email protected]> Cc: Anatolij Gustschin <[email protected]>
Diffstat (limited to 'scripts/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions