net: dsa: introduce dsa_user_ports helper
Introduce a dsa_user_ports() helper to return the ds->enabled_port_mask mask which is more explicit. This will also minimize diffs when touching this internal mask. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4a5b85ffe2
commit
02bc6e546e
@@ -688,7 +688,7 @@ mt7530_cpu_port_enable(struct mt7530_priv *priv,
|
||||
* the switch
|
||||
*/
|
||||
mt7530_write(priv, MT7530_PCR_P(port),
|
||||
PCR_MATRIX(priv->ds->enabled_port_mask));
|
||||
PCR_MATRIX(dsa_user_ports(priv->ds)));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user