lxfb: Maintain video processor palette through suspend/resume
commit16cdd4336fdca9b50f991b591005b5f6416f82c4
authorDaniel Drake <dsd@laptop.org>
Tue, 30 Nov 2010 20:34:52 +0000 (30 20:34 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 1 Dec 2010 09:18:56 +0000 (1 18:18 +0900)
tree45bde2b1c434851bacd657e8fb2c493e2960c7cb
parent93c176f39fedaeff854ccb7681d626d65bdffe52
lxfb: Maintain video processor palette through suspend/resume

The Geode X driver uses both of the LX's palettes, one for gamma
correction and one for colormaps.

The kernel driver currently only backs up the one used for colormaps
during suspend/resume. If you mess with gamma settings and do a
suspend/resume, colors go funny.

Fix this by backing up the video proc palette during suspend/resume,
alongside the display controller one which is already handled.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/geode/lxfb.h
drivers/video/geode/lxfb_ops.c