diff options
| author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-11-15 03:18:46 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-17 21:16:42 -0800 |
| commit | 54c087e83945eda014064f78c4807c5da1e09842 (patch) | |
| tree | e5331a40bc7156f57b5a64a0715d0d1d0d4231cc /net/dsa/dsa2.c | |
| parent | net: dsa: strip sysfs "tagging" string of trailing newline (diff) | |
| download | linux-54c087e83945eda014064f78c4807c5da1e09842.tar.gz linux-54c087e83945eda014064f78c4807c5da1e09842.zip | |
net: dsa: rename dsa_tag_driver_get() to dsa_tag_driver_get_by_id()
A future patch will introduce one more way of getting a reference on a
tagging protocl driver (by name). Rename the current method to "by_id".
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/dsa2.c')
| -rw-r--r-- | net/dsa/dsa2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index d3055b49080f..4b31b0258870 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c @@ -1441,7 +1441,7 @@ static int dsa_port_parse_cpu(struct dsa_port *dp, struct net_device *master, } if (!tag_ops) - tag_ops = dsa_tag_driver_get(default_proto); + tag_ops = dsa_tag_driver_get_by_id(default_proto); if (IS_ERR(tag_ops)) { if (PTR_ERR(tag_ops) == -ENOPROTOOPT) |
