]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: mt7621-pci: factor out mt7621_pci_get_cfgaddr function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 9 Jul 2018 20:21:04 +0000 (22:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jul 2018 10:44:55 +0000 (12:44 +0200)
commit2427d174a476199111a20e74f76fda21296134f7
treea5e875a9772c1ccb3a584c5d01c1ebd67d1d3923
parentfc4afdfea0428f8a564b62a6d668da95935b6cbf
staging: mt7621-pci: factor out mt7621_pci_get_cfgaddr function

To get config address the same pattern is repeated in some functions
along the code. Factor out a new mt7621_pci_get_cfgaddr for calculate
it and use it in convenient places. Adjust types to match to u32 where
is neccesary.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c