powerpc/pseries/eeh: Clean up pe_config_addr lookups
authorOliver O'Halloran <oohall@gmail.com>
Fri, 18 Sep 2020 09:30:47 +0000 (19:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Oct 2020 12:22:25 +0000 (23:22 +1100)
commitf61c859feb5d19787c93d6b2b3d4beeca7260034
tree3be2df120653816ed681b579b9e29edc01030375
parent395ee2a2a15ba1c4c7c414db24dc3082ba8feab8
powerpc/pseries/eeh: Clean up pe_config_addr lookups

De-duplicate, and fix up the comments, and make the prototype just take a
pci_dn since the job of the function is to return the pe_config_addr of the
PE which contains a given device.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200918093050.37344-6-oohall@gmail.com
arch/powerpc/platforms/pseries/eeh_pseries.c