PCI/switchtec: Separate Gen3 register structures into unions
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 15 Jan 2020 03:56:45 +0000 (20:56 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2020 17:00:38 +0000 (11:00 -0600)
commit993d208daaebebc3f3ec211e862a413a90e8d69b
treea993af82084899162abca599b55b2f276a4ff80e
parent6a3d1b542cfafe6241d4de11800d639c9bf69f29
PCI/switchtec: Separate Gen3 register structures into unions

Since the sys_info and flash_info registers differ significantly in Gen4
hardware, separate out the Gen3 registers into their own structure with a
union in the main structure.

No functional changes intended.

Link: https://lore.kernel.org/r/20200115035648.2578-5-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c
include/linux/switchtec.h