net: mscc: ocelot: rename ocelot_netdevice_port_event to ocelot_netdevice_changeupper
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 5 Feb 2021 22:02:10 +0000 (00:02 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:51:50 +0000 (14:51 -0800)
commit662981bbda291b8921100e42efa8a46c547dc08c
tree0a6f08eb72ac441f35b2ccaa642eaa83e90cdd4e
parent8d9dbce4e8c4a270c05eac48798d44e5676520f9
net: mscc: ocelot: rename ocelot_netdevice_port_event to ocelot_netdevice_changeupper

ocelot_netdevice_port_event treats a single event, NETDEV_CHANGEUPPER.
So we can remove the check for the type of event, and rename the
function to be more suggestive, since there already is a function with a
very similar name of ocelot_netdevice_event.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_net.c