]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commite1edf18b20076da83dd231dbd2146cbbc31c0b14
tree6e5e18f89477bb201cde20f37c98d1a657790c37
parent212c0cbd5be721a39ef3e2f723e0c78008f9e955
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