]> git.baikalelectronics.ru Git - kernel.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)
commitf65f542e1e820e5ca8cbee2bd92ffd277ca40271
treea5e875a9772c1ccb3a584c5d01c1ebd67d1d3923
parent950e704778356082f8ba6d54a31d53a7ab33c6a0
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