linux/drivers/net/dsa/b53
Vivien Didelot c8652c83bc net: dsa: add dsa_to_port helper
The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-18 12:24:33 +01:00
..
b53_common.c net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
b53_mdio.c net: dsa: b53: Utilize mdio_module_driver 2017-01-24 13:37:51 -05:00
b53_mmap.c net: dsa: b53: Fix module autoload 2016-10-17 13:03:03 -04:00
b53_priv.h net: dsa: bcm_sf2: Utilize b53_{enable, disable}_port 2017-09-19 16:08:54 -07:00
b53_regs.h net: dsa: b53: Define EEE register page 2017-09-19 16:08:53 -07:00
b53_spi.c net: dsa: b53: remove .owner and .bus fields for driver 2016-08-14 21:24:25 -07:00
b53_srab.c net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-05-18 11:01:42 -04:00
Kconfig
Makefile