OMAPFB: fix framebuffer console colors
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 21 Aug 2012 06:09:48 +0000 (09:09 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:04:31 +0000 (15:04 +0100)
commit3fd4e8f0ecd916f761459f0dc7174940ce3a0b99
treea1f52957a10aa777a1d3024515d6a56a938fe5d3
parent9ec662146036d6ed240721ab175607752e0819d2
OMAPFB: fix framebuffer console colors

commit c1c52848cef52e157468b8879fc3cae23b6f3a99 upstream.

omapfb does not currently set pseudo palette correctly for color depths
above 16bpp, making red text invisible, command like
  echo -e '\e[0;31mRED' > /dev/tty1
will display nothing on framebuffer console in 24bpp mode.
This is because temporary variable is declared incorrectly, fix it.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/video/omap2/omapfb/omapfb-main.c