[PATCH] Optimize qe_brg struct to use an array
authorTimur Tabi <timur@freescale.com>
Thu, 9 Nov 2006 21:42:44 +0000 (15:42 -0600)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 Nov 2006 03:49:01 +0000 (14:49 +1100)
commitfc9e8b4e275b6882cb537154c8fc7cde3692eea0
tree6c33e974098943f805e153ed22548652f8c6c0b9
parent0613ffbf53625ccecb96500b1cc7b0ef70cc8f04
[PATCH] Optimize qe_brg struct to use an array

The qe_brg structure manually defined each of the 16 BRG registers, which
made any code that used them cumbersome.  This patch replaces the fields
with a single 16-element array.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/qe_lib/qe.c
include/asm-powerpc/immap_qe.h