]> git.baikalelectronics.ru Git - kernel.git/commit
offb: Add palette hack for little endian
authorCedric Le Goater <clg@fr.ibm.com>
Wed, 4 Dec 2013 16:49:52 +0000 (17:49 +0100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Dec 2013 00:25:07 +0000 (11:25 +1100)
commit55ab1e228c2ea0c6249717cfebfb067bf69c24e1
tree6e5e18f89477bb201cde20f37c98d1a657790c37
parent538dd4f2d521f970b2c67c91763adc20f75ba65c
offb: Add palette hack for little endian

The pseudo palette color entries need to be ajusted for little
endian.

This patch byteswaps the values in the pseudo palette depending
on the host endian order and the screen depth.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/video/offb.c