staging: xgifb: fix colours on big-endian machines other than powerpc
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 1 Feb 2015 15:01:33 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:24:11 +0000 (17:24 +0800)
commit509031dd5f5ae008ef5d4d04226ce63ca8c84354
tree57b8b8f77c805a5ff8169aa170074a26c8a75fa4
parent659688a51a0e7427be2b2e38baeaa7f30ba16bcb
staging: xgifb: fix colours on big-endian machines other than powerpc

XGI framebuffer supports big-endian machines, but it's currently
enabled based on __powerpc__ define (which is wrong, as powerpc can
be also little-endian now). Use __BIG_ENDIAN instead. This will fix
wrong colours on such machines.

Tested on parisc with XGI Z7.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c