realtek: mdio: harden for_each_port macro
In case someone calls the macro with other helpers this might break the code. Add brackets for consistency. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/23204 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
5e8551e75f
commit
5baeb8f80f
@ -124,7 +124,7 @@
|
||||
#define RTMDIO_931X_SMI_10GPHY_POLLING_SEL4 (0x0D00)
|
||||
|
||||
#define for_each_port(ctrl, pn) \
|
||||
for_each_set_bit(pn, ctrl->valid_ports, RTMDIO_MAX_PORTS)
|
||||
for_each_set_bit(pn, (ctrl)->valid_ports, RTMDIO_MAX_PORTS)
|
||||
|
||||
/*
|
||||
* On all Realtek switch platforms the hardware periodically reads the link status of all
|
||||
|
||||
Loading…
Reference in New Issue
Block a user