diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-09-16 10:04:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-16 10:22:24 +0300 |
commit | 5f109d45a4768a4bf8b5d6a8f305039bcd4f3e87 (patch) | |
tree | 205eddc631f267cf895512125419531654583721 /tools/testing | |
parent | 95cf66747fc29e6be457e938f89d13e25cea8da3 (diff) | |
download | linux-5f109d45a4768a4bf8b5d6a8f305039bcd4f3e87.tar.xz |
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 'tools/testing')
0 files changed, 0 insertions, 0 deletions