summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2019-09-16 09:04:00 +0200
committerDavid S. Miller <davem@davemloft.net>2019-09-16 09:22:24 +0200
commit5f109d45a4768a4bf8b5d6a8f305039bcd4f3e87 (patch)
tree205eddc631f267cf895512125419531654583721 /net
parentMerge branch 'More-fixes-for-unlocked-cls-hardware-offload-API-refactoring' (diff)
downloadlinux-5f109d45a4768a4bf8b5d6a8f305039bcd4f3e87.tar.xz
linux-5f109d45a4768a4bf8b5d6a8f305039bcd4f3e87.zip
net: stmmac: socfpga: re-use the `interface` parameter from platform data
The socfpga sub-driver defines an `interface` field in the `socfpga_dwmac` struct and parses it on init. The shared `stmmac_probe_config_dt()` function also parses this from the device-tree and makes it available on the returned `plat_data` (which is the same data available via `netdev_priv()`). All that's needed now is to dig that information out, via some `dev_get_drvdata()` && `netdev_priv()` calls and re-use it. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions