diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-11-15 02:18:46 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-18 06:16:42 +0100 |
commit | 54c087e83945eda014064f78c4807c5da1e09842 (patch) | |
tree | e5331a40bc7156f57b5a64a0715d0d1d0d4231cc /net/dsa/dsa.c | |
parent | net: dsa: strip sysfs "tagging" string of trailing newline (diff) | |
download | linux-54c087e83945eda014064f78c4807c5da1e09842.tar.xz 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/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index f74ddda670a8..577765cfa986 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -102,7 +102,7 @@ const struct dsa_device_ops *dsa_find_tagger_by_name(const char *name) return ops; } -const struct dsa_device_ops *dsa_tag_driver_get(int tag_protocol) +const struct dsa_device_ops *dsa_tag_driver_get_by_id(int tag_protocol) { struct dsa_tag_driver *dsa_tag_driver; const struct dsa_device_ops *ops; |