gfx: drv: save pipe specific panel timing regs to an array
authorImre Deak <imre.deak@intel.com>
Tue, 6 Mar 2012 19:17:23 +0000 (21:17 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:30:26 +0000 (12:30 +0300)
commit2cae15162ac31b843fd5d111eb08d7a69aee4d0d
treea2e19175f7d3f4a064ec7ea18bb2004f082528b5
parentbefe771b20fb02e3daeb1e1d7b9cb11b3a3fa38a
gfx: drv: save pipe specific panel timing regs to an array

We have the same set of panel timing regs for each pipe, so store them
to an appropriate array instead of separate variables named after the
pipe.

The CNTR, CONF, DPLL, PALETTE, MIPI registers are handled specially
during restore, so the parts related to those are cleaned up separately
in the upcoming patches.

The only functional change of this patch is that the CNTR register is
saved now before all the above generic registers, but as reading these
registers don't have a side-effect this shouldn't be a problem.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/psb_drv.c
drivers/staging/mrst/drv/psb_drv.h
drivers/staging/mrst/drv/psb_powermgmt.c