net: mscc: ocelot: change prototypes of switchdev port attribute handlers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 9 Nov 2019 13:02:51 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Nov 2019 20:59:10 +0000 (12:59 -0800)
commit4bda14156ee22af4825c2dd140e76d0b301bcd1b
treeecc80274eeef4aa34f2d4fc518ed812ce3ec2137
parent306fd44b1af9b2a5c245b0f14979cfe62e50fae3
net: mscc: ocelot: change prototypes of switchdev port attribute handlers

This is needed so that the Felix DSA front-end can call the Ocelot
implementations.

The implementation of the "mc_disabled" switchdev attribute has also
been simplified by using the read-modify-write macro instead of
open-coding that operation.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c