]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: fix __ocelot_rmw_ix prototype
authorVladimir Oltean <olteanv@gmail.com>
Tue, 5 Nov 2019 22:01:40 +0000 (00:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 23:34:12 +0000 (15:34 -0800)
commit3bda41a6d194d79a997fdd4361f296f7d1eea8e0
tree08fa6abca81c5edb3002ab121ab61dbed953429d
parent7d1332041cb653e8a892c2e067fd12b1bcd24ab4
net: mscc: ocelot: fix __ocelot_rmw_ix prototype

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>
drivers/net/ethernet/mscc/ocelot.h