]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04231e973b3aec4dcb4f35772ddc772ddddcbf8d
tree5f3a0903c38b5f108901edc3672bdf8c506b1f48
parent2c460089bb1d67bd3111bb8d4fd9f487d5123d08
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