summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/mv88e6xxx/devlink.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2020-09-18 21:11:09 +0200
committerDavid S. Miller <davem@davemloft.net>2020-09-18 18:18:30 -0700
commit93157307f7b4e11232d972d325ab688f1a08f487 (patch)
treec7ec78419603ec1867d8f6a4361e4ba6dd2253b0 /drivers/net/dsa/mv88e6xxx/devlink.h
parent0f06b855a93c3b449253b91abc94c4d483af0a44 (diff)
net: dsa: mv88e6xxx: Implement devlink info get callback
Return the driver name and the asic.id with the switch name. Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/devlink.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx/devlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/devlink.h b/drivers/net/dsa/mv88e6xxx/devlink.h
index da83c25d944b..3d72db3dcf95 100644
--- a/drivers/net/dsa/mv88e6xxx/devlink.h
+++ b/drivers/net/dsa/mv88e6xxx/devlink.h
@@ -15,4 +15,7 @@ int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id,
int mv88e6xxx_setup_devlink_regions(struct dsa_switch *ds);
void mv88e6xxx_teardown_devlink_regions(struct dsa_switch *ds);
+int mv88e6xxx_devlink_info_get(struct dsa_switch *ds,
+ struct devlink_info_req *req,
+ struct netlink_ext_ack *extack);
#endif /* _MV88E6XXX_DEVLINK_H */