Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: lan9303: Correct register names in comments

Two comments refer to registers, but lack the LAN9303_ prefix.
Fix that.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Egil Hjelmeland and committed by
David S. Miller
620a5c86 d86fd113

+5 -3
+5 -3
include/linux/dsa/lan9303.h
··· 13 13 #define LAN9303_NUM_ALR_RECORDS 512 14 14 struct lan9303_alr_cache_entry { 15 15 u8 mac_addr[ETH_ALEN]; 16 - u8 port_map; /* Bitmap of ports. Zero if unused entry */ 17 - u8 stp_override; /* non zero if set ALR_DAT1_AGE_OVERRID */ 16 + u8 port_map; /* Bitmap of ports. Zero if unused entry */ 17 + u8 stp_override; /* non zero if set LAN9303_ALR_DAT1_AGE_OVERRID */ 18 18 }; 19 19 20 20 struct lan9303 { ··· 28 28 struct mutex indirect_mutex; /* protect indexed register access */ 29 29 const struct lan9303_phy_ops *ops; 30 30 bool is_bridged; /* true if port 1 and 2 are bridged */ 31 - u32 swe_port_state; /* remember SWE_PORT_STATE while not bridged */ 31 + 32 + /* remember LAN9303_SWE_PORT_STATE while not bridged */ 33 + u32 swe_port_state; 32 34 /* LAN9303 do not offer reading specific ALR entry. Cache all 33 35 * static entries in a flat table 34 36 **/