OSDN Git Service

enetc: don't use macro magic for the readx_poll_timeout() callback
authorMichael Walle <michael@walle.cc>
Mon, 28 Dec 2020 13:00:32 +0000 (14:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2021 23:19:19 +0000 (15:19 -0800)
commit3c7df82a63d8c81ca30737c397ed59b034a558f2
tree48528434f6949d4e84e744a5915a97ee4aec5187
parent38d26b244367e84ed657ac4f5093ae9e71c8a7a2
enetc: don't use macro magic for the readx_poll_timeout() callback

The macro enetc_mdio_rd_reg() is just used in that particular case and
has a hardcoded parameter name "mdio_priv". Define a specific function
to use for readx_poll_timeout() instead. Also drop the TIMEOUT macro
since it is used just once.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_mdio.c