]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecbd9960f6b98768f4ae01bd8d20e27a6f6081ac
treeecc80274eeef4aa34f2d4fc518ed812ce3ec2137
parentcb2f3626f93781b18cfc634ddf47c11e448df872
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