]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: systemport: Move IO macros to header file
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Mon, 21 Oct 2024 17:49:35 +0000 (10:49 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Oct 2024 22:54:37 +0000 (15:54 -0700)
commite69fbd287d5a8b1038e50612545d7e3fc6db2b8a
tree2119c369f0ead3a326b6469fa22b3e738dd67f0f
parent890bde75a2360d80712f394a31982fbd93fa0891
net: systemport: Move IO macros to header file

Move the BCM_SYSPORT_IO_MACRO() definition and its use to bcmsysport.h
where it is more appropriate and where static inline helpers are
acceptable. While at it, make sure that the macro 'offset' argument does
not trigger a checkpatch warning due to possible argument re-use.

Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241021174935.57658-3-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h