
On 8 December 2014 at 08:14, Nikita Kiryanov nikita@compulab.co.il wrote:
Introduce lcd_getbgcolor() and lcd_getfgcolor(), and use them where applicable.
This is a preparatory step for extracting lcd console code into its own file.
Signed-off-by: Nikita Kiryanov nikita@compulab.co.il Cc: Anatolij Gustschin agust@denx.de Cc: Simon Glass sjg@chromium.org
Acked-by: Simon Glass sjg@chromium.org
Changes in V3: - Instead of invoking lcd_get(bg|fg)color() each time, do it only once and cache the value. This is done in console_scrollup(), lcd_drawchars(), and drv_lcd_init().
Changes in V2: - New patch.
common/lcd.c | 31 ++++++++++++++++++++++--------- include/lcd.h | 14 ++++++++++++++ 2 files changed, 36 insertions(+), 9 deletions(-)