powerpc/io: Wrap port calculation in a macro
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Dec 2024 10:55:02 +0000 (21:55 +1100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 26 Feb 2025 15:45:08 +0000 (21:15 +0530)
commit8a55941aed70196c1868280b76385709aff9b844
treea27cda47eca499958eb74fe7c6b4f586a661266a
parent41c8992c02a58cd5294546d98391dd542bea2d68
powerpc/io: Wrap port calculation in a macro

The calculation of the IO port is repeated several times, wrap it in
a macro, in particular to avoid spelling out the cast multiple times.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241218105523.416573-14-mpe@ellerman.id.au
arch/powerpc/include/asm/io.h