aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLABBE Corentin <clabbe.montjoie@gmail.com>2017-05-31 09:18:33 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-01 14:53:03 -0400
commitec33d71de7309c50531c2ae0eb178244899e6e46 (patch)
tree4b4f40d2f9482a25a1ebc4e9e40dc79012cbddd6 /include
parentnet-next: stmmac: export stmmac_set_mac_addr/stmmac_get_mac_addr (diff)
downloadlinux-dev-ec33d71de7309c50531c2ae0eb178244899e6e46.tar.xz
linux-dev-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')
-rw-r--r--include/linux/stmmac.h1
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;