MIPS: SGI-IP27: Use union instead of typedef
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Thu, 9 Jan 2020 12:33:45 +0000 (13:33 +0100)
committerPaul Burton <paulburton@kernel.org>
Thu, 9 Jan 2020 23:29:58 +0000 (15:29 -0800)
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
arch/mips/sgi-ip27/ip27-hubio.c

index 298cfdf8b44ebd42b672b2472830e8877b00cd61..8352eb6403b437ff9819c72caa0c228dd78097dd 100644 (file)
@@ -84,7 +84,7 @@ unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget,
  */
 static void hub_setup_prb(nasid_t nasid, int prbnum, int credits)
 {
-       iprb_t prb;
+       union iprb_u prb;
        int prb_offset;
 
        /*
@@ -137,7 +137,7 @@ static void hub_setup_prb(nasid_t nasid, int prbnum, int credits)
 static void hub_set_piomode(nasid_t nasid)
 {
        u64 ii_iowa;
-       hubii_wcr_t ii_wcr;
+       union hubii_wcr_u ii_wcr;
        unsigned i;
 
        ii_iowa = REMOTE_HUB_L(nasid, IIO_OUTWIDGET_ACCESS);