offb: Little endian fixes
authorCedric Le Goater <clg@fr.ibm.com>
Wed, 4 Dec 2013 16:49:51 +0000 (17:49 +0100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Dec 2013 00:25:06 +0000 (11:25 +1100)
commit212c0cbd5be721a39ef3e2f723e0c78008f9e955
tree1bd0ccf4aebe577f986afbb12bed89180e1563ba
parentcf77ee54362a245f9a01f240adce03a06c05eb68
offb: Little endian fixes

The "screen" properties : depth, width, height, linebytes need
to be converted to the host endian order when read from the device
tree.

The offb_init_palette_hacks() routine also made assumption on the
host endian order.

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