linux/drivers/net/ethernet/qualcomm/emac
Zijun Hu 138d21b68b net: qcom/emac: Find sgmii_ops by device_for_each_child()
To prepare for constifying the following old driver core API:

struct device *device_find_child(struct device *dev, void *data,
		int (*match)(struct device *dev, void *data));
to new:
struct device *device_find_child(struct device *dev, const void *data,
		int (*match)(struct device *dev, const void *data));

The new API does not allow its match function (*match)() to modify
caller's match data @*data, but emac_sgmii_acpi_match(), as the old
API's match function, indeed modifies relevant match data, so it is
not suitable for the new API any more, solved by implementing the same
finding sgmii_ops function by correcting the function and using it
as parameter of device_for_each_child() instead of device_find_child().

By the way, this commit does not change any existing logic.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://patch.msgid.link/20241003-qcom_emac_fix-v6-1-0658e3792ca4@quicinc.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-08 09:34:06 +02:00
..
Makefile Revert "net: ethernet: qualcomm: Remove QDF24xx support" 2024-01-24 09:43:34 -08:00
emac-ethtool.c
emac-mac.c
emac-mac.h
emac-phy.c
emac-phy.h
emac-sgmii-fsm9900.c
emac-sgmii-qdf2400.c Revert "net: ethernet: qualcomm: Remove QDF24xx support" 2024-01-24 09:43:34 -08:00
emac-sgmii-qdf2432.c Revert "net: ethernet: qualcomm: Remove QDF24xx support" 2024-01-24 09:43:34 -08:00
emac-sgmii.c net: qcom/emac: Find sgmii_ops by device_for_each_child() 2024-10-08 09:34:06 +02:00
emac-sgmii.h Revert "net: ethernet: qualcomm: Remove QDF24xx support" 2024-01-24 09:43:34 -08:00
emac.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
emac.h