1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2
Vladimir Oltean 320fefa9e2 net: dpaa2: replace dpaa2_mac_is_type_fixed() with dpaa2_mac_is_type_phy()
dpaa2_mac_is_type_fixed() is a header with no implementation and no
callers, which is referenced from the documentation though. It can be
deleted.

On the other hand, it would be useful to reuse the code between
dpaa2_eth_is_type_phy() and dpaa2_switch_port_is_type_phy(). That common
code should be called dpaa2_mac_is_type_phy(), so let's create that.

The removal and the addition are merged into the same patch because,
in fact, is_type_phy() is the logical opposite of is_type_fixed().

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-12-01 13:40:21 +01:00
..
dpio-driver.rst docs: networking: dpaa2: fix chapter title format 2021-07-25 14:34:33 -06:00
ethernet-driver.rst
index.rst docs: networking: dpaa2: add documentation for the switch driver 2021-07-27 11:53:09 +01:00
mac-phy-support.rst net: dpaa2: replace dpaa2_mac_is_type_fixed() with dpaa2_mac_is_type_phy() 2022-12-01 13:40:21 +01:00
overview.rst docs: networking: dpaa2: Fix DPNI header 2021-12-20 11:46:42 +00:00
switch-driver.rst docs: networking: dpaa2: document mirroring support on the switch 2021-07-29 21:34:45 +01:00