]> 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)
commit3b6d25066f0abcc288a63c2d8dc13611bcf84be9
tree6e5e18f89477bb201cde20f37c98d1a657790c37
parentd95a2c458d2d1613c8dc625186191020d13743f4
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