Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: SGI-IP27: Use union instead of typedef

The upcoming header files for SGI-IP35 shouldn't add new typedef. To
be able to share ip27-hubio.c we need to access register layouts no
longer via a typedef.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

authored by

Thomas Bogendoerfer and committed by
Paul Burton
db96e058 aa2d74f9

+2 -2
+2 -2
arch/mips/sgi-ip27/ip27-hubio.c
··· 84 84 */ 85 85 static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) 86 86 { 87 - iprb_t prb; 87 + union iprb_u prb; 88 88 int prb_offset; 89 89 90 90 /* ··· 137 137 static void hub_set_piomode(nasid_t nasid) 138 138 { 139 139 u64 ii_iowa; 140 - hubii_wcr_t ii_wcr; 140 + union hubii_wcr_u ii_wcr; 141 141 unsigned i; 142 142 143 143 ii_iowa = REMOTE_HUB_L(nasid, IIO_OUTWIDGET_ACCESS);