]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: prefix Global Monitor Control macros
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 15 Jun 2017 16:14:04 +0000 (12:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jun 2017 18:07:49 +0000 (14:07 -0400)
commit41878a99ea524094a580d94493f4e9b94ebdf375
tree9c123b66ac6380f011a58d6341257801e55b4f46
parent50b4d3be0d6d7b0a44aa1643e454d8869df3a9dc
net: dsa: mv88e6xxx: prefix Global Monitor Control macros

Prefix and document the Global Monitor Control Register macros
(which became the Global Monitor & MGMT Control Register with 88E6390)
and give a clear 16-bit registers representation.

Use __bf_shf to get the shift value at compile time instead of adding
new defined macros for it.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/global1.c
drivers/net/dsa/mv88e6xxx/global1.h