summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/qca/qca8k.h
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2022-07-27 13:35:23 +0200
committerJakub Kicinski <kuba@kernel.org>2022-07-29 07:24:40 +0200
commit9d1bcb1f293f1391302a109c9819c3705c804700 (patch)
tree103a0dbdc757b3fdc05b88792d90b41d640ebaf2 /drivers/net/dsa/qca/qca8k.h
parentnet: dsa: qca8k: move port LAG functions to common code (diff)
downloadlinux-9d1bcb1f293f1391302a109c9819c3705c804700.tar.xz
linux-9d1bcb1f293f1391302a109c9819c3705c804700.zip
net: dsa: qca8k: move read_switch_id function to common code
The same function to read the switch id is used by drivers based on qca8k family switch. Move them to common code to make them accessible also by other drivers. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/net/dsa/qca/qca8k.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca/qca8k.h b/drivers/net/dsa/qca/qca8k.h
index e87bfee837c1..e36ecc9777f4 100644
--- a/drivers/net/dsa/qca/qca8k.h
+++ b/drivers/net/dsa/qca/qca8k.h
@@ -432,6 +432,7 @@ extern const struct qca8k_mib_desc ar8327_mib[];
extern const struct regmap_access_table qca8k_readable_table;
int qca8k_mib_init(struct qca8k_priv *priv);
void qca8k_port_set_status(struct qca8k_priv *priv, int port, int enable);
+int qca8k_read_switch_id(struct qca8k_priv *priv);
/* Common read/write/rmw function */
int qca8k_read(struct qca8k_priv *priv, u32 reg, u32 *val);