OSDN Git Service

staging: mt7621-pci: simplify 'mt7621_pcie_init_virtual_bridges' function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 8 Mar 2020 09:19:27 +0000 (10:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Mar 2020 09:52:27 +0000 (10:52 +0100)
commit9a5e71a68d201165adc3fa4157ed9bf94b901ec7
tree0a164fbd132e02a7166511efe8fb67611f262cf4
parent8080b0f53724325f6233a400310433eb6c4e7049
staging: mt7621-pci: simplify 'mt7621_pcie_init_virtual_bridges' function

Function 'mt7621_pcie_init_virtual_bridges' is a bit mess and can be
refactorized properly in a cleaner way. Introduce new 'pcie_rmw' inline
function helper to do clear and set the correct bits this function needs
to work.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200308091928.17177-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c