mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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>
This commit is contained in:
parent
e8666130b9
commit
54c087e839
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -243,7 +243,7 @@ struct dsa_slave_priv {
|
||||
};
|
||||
|
||||
/* dsa.c */
|
||||
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);
|
||||
void dsa_tag_driver_put(const struct dsa_device_ops *ops);
|
||||
const struct dsa_device_ops *dsa_find_tagger_by_name(const char *name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user