aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorZijun Hu <[email protected]>2024-10-03 10:27:27 -0700
committerPaolo Abeni <[email protected]>2024-10-08 09:34:06 +0200
commit138d21b68b71af6d9ad114774008b36a149c2c80 (patch)
tree864d5917833b810fc82c5327a96ee4ab80b907c7 /tools/perf/scripts/python/syscall-counts-by-pid.py
parentf95b4725e796b12e5f347a0d161e1d3843142aa8 (diff)
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions