summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/qca8k.h
diff options
context:
space:
mode:
authorMichal Vokáč <vokac.m@gmail.com>2018-05-23 09:20:22 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-23 22:46:18 +0300
commit9bb2289f90e671bdb78e306974187424ac19ff8e (patch)
tree1b020a2cfa6d9f5c59106c98b415345a62d51862 /drivers/net/dsa/qca8k.h
parent79a4ed4f0f93fc65e48a0fc5247ffa5645f7b0cc (diff)
downloadlinux-9bb2289f90e671bdb78e306974187424ac19ff8e.tar.xz
net: dsa: qca8k: Allow overwriting CPU port setting
Implement adjust_link function that allows to overwrite default CPU port setting using fixed-link device tree subnode. Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.h')
-rw-r--r--drivers/net/dsa/qca8k.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h
index 5bda16555478..613fe5c50236 100644
--- a/drivers/net/dsa/qca8k.h
+++ b/drivers/net/dsa/qca8k.h
@@ -167,6 +167,7 @@ struct qca8k_priv {
struct ar8xxx_port_status port_sts[QCA8K_NUM_PORTS];
struct dsa_switch *ds;
struct mutex reg_mutex;
+ struct device *dev;
};
struct qca8k_mib_desc {