]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: introduce macros for iterating over PGIDs
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 21 Jun 2020 11:46:02 +0000 (14:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 03:41:05 +0000 (20:41 -0700)
commit7daeb97f20bf2bfdb561ec4af8a0bd14a036e430
tree8344fe871515b6c0064b1c72c543172aa1604b21
parentf1c1fbe249905a1679a4efc42e46d16f02d6813e
net: mscc: ocelot: introduce macros for iterating over PGIDs

The current iterators are impossible to understand at first glance
without switching back and forth between the definitions and their
actual use in the for loops.

So introduce some convenience names to help readability.

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