OSDN Git Service

PCI/switchtec: Factor out Gen3 ioctl_flash_part_info()
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 15 Jan 2020 03:56:44 +0000 (20:56 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2020 17:00:37 +0000 (11:00 -0600)
commit6a3d1b542cfafe6241d4de11800d639c9bf69f29
treea2b19bf9d3037a417663e097a2615d458d17713d
parentb13313a01a6a607bd92268822d498d5c7356ca71
PCI/switchtec: Factor out Gen3 ioctl_flash_part_info()

Refactor ioctl_flash_part_info() into a Gen3-specific function because the
registers for flash partition information have changed significantly in
Gen4 and will require a completely different implementation.

No functional changes intended.

Co-developed-by: Kelvin Cao <kelvin.cao@microchip.com>
Link: https://lore.kernel.org/r/20200115035648.2578-4-logang@deltatee.com
Signed-off-by: Kelvin Cao <kelvin.cao@microchip.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c