net: dsa: mv88e6xxx: Add helper to get a chip's max_vid
authorTobias Waldekranz <tobias@waldekranz.com>
Tue, 10 Nov 2020 18:57:20 +0000 (19:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 02:04:23 +0000 (18:04 -0800)
commite545f86573937142b8a90bd65d476b9f001088cf
tree5f3a0903c38b5f108901edc3672bdf8c506b1f48
parentca787e0b935cdb45db1715f724d859683c5de297
net: dsa: mv88e6xxx: Add helper to get a chip's max_vid

Most of the other chip info constants have helpers to get at them; add
one for max_vid to keep things consistent.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201110185720.18228-1-tobias@waldekranz.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/devlink.c