net: mscc: ocelot: fix __ocelot_rmw_ix prototype
authorVladimir Oltean <olteanv@gmail.com>
Tue, 5 Nov 2019 22:01:40 +0000 (00:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:19:45 +0000 (09:19 +0100)
commit0f716cda304bd3b80edf65ccf3d4a087c06c04fe
treeab8aa8a779dbac6fbac0db0e7b26b984ddca6b33
parenta30c6e424fddff9470e021f644f960a54f81c844
net: mscc: ocelot: fix __ocelot_rmw_ix prototype

[ Upstream commit 17fdd7638cb687cd7f15a48545f25d738f0101e0 ]

The "read-modify-write register index" function is declared with a
confusing prototype: the "mask" and "reg" arguments are swapped.

Fortunately, this does not affect callers so far. Both arguments are
u32, and the wrapper macros (ocelot_rmw_ix etc) have the arguments in
the correct order (the one from ocelot_io.c).

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mscc/ocelot.h