diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2017-05-31 09:18:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-01 14:53:03 -0400 |
commit | ec33d71de7309c50531c2ae0eb178244899e6e46 (patch) | |
tree | 4b4f40d2f9482a25a1ebc4e9e40dc79012cbddd6 /include/linux/stmmac.h | |
parent | 3874191898675ac34b6d1d94cfe997c570492bbb (diff) | |
download | linux-ec33d71de7309c50531c2ae0eb178244899e6e46.tar.gz linux-ec33d71de7309c50531c2ae0eb178244899e6e46.tar.bz2 linux-ec33d71de7309c50531c2ae0eb178244899e6e46.zip |
net-next: stmmac: add optional setup function
Instead of adding more ifthen logic for adding a new mac_device_info
setup function, it is easier to add a function pointer to the function
needed.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 3921cb9dfadb..8bb550bca96d 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -177,6 +177,7 @@ struct plat_stmmacenet_data { void (*fix_mac_speed)(void *priv, unsigned int speed); int (*init)(struct platform_device *pdev, void *priv); void (*exit)(struct platform_device *pdev, void *priv); + struct mac_device_info *(*setup)(void *priv); void *bsp_priv; struct clk *stmmac_clk; struct clk *pclk; |