diff options
| author | Egil Hjelmeland <privat@egil-hjelmeland.no> | 2017-11-06 06:42:01 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-11-07 23:29:05 -0500 |
| commit | 620a5c860b774a81ce3f193eefb52bf4d128cca5 (patch) | |
| tree | 1d51e4b3f1e59ae45a7cd2d38bbd8fad7bb94ed8 /include/linux/dsa | |
| parent | d86fd113ebbb37726ef7c7cc6fd6d5ce377455d6 (diff) | |
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>
Diffstat (limited to 'include/linux/dsa')
| -rw-r--r-- | include/linux/dsa/lan9303.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/dsa/lan9303.h b/include/linux/dsa/lan9303.h index 05d8d136baab..f48a85c377de 100644 --- a/include/linux/dsa/lan9303.h +++ b/include/linux/dsa/lan9303.h | |||
| @@ -13,8 +13,8 @@ struct lan9303_phy_ops { | |||
| 13 | #define LAN9303_NUM_ALR_RECORDS 512 | 13 | #define LAN9303_NUM_ALR_RECORDS 512 |
| 14 | struct lan9303_alr_cache_entry { | 14 | struct lan9303_alr_cache_entry { |
| 15 | u8 mac_addr[ETH_ALEN]; | 15 | u8 mac_addr[ETH_ALEN]; |
| 16 | u8 port_map; /* Bitmap of ports. Zero if unused entry */ | 16 | u8 port_map; /* Bitmap of ports. Zero if unused entry */ |
| 17 | u8 stp_override; /* non zero if set ALR_DAT1_AGE_OVERRID */ | 17 | u8 stp_override; /* non zero if set LAN9303_ALR_DAT1_AGE_OVERRID */ |
| 18 | }; | 18 | }; |
| 19 | 19 | ||
| 20 | struct lan9303 { | 20 | struct lan9303 { |
| @@ -28,7 +28,9 @@ struct lan9303 { | |||
| 28 | struct mutex indirect_mutex; /* protect indexed register access */ | 28 | struct mutex indirect_mutex; /* protect indexed register access */ |
| 29 | const struct lan9303_phy_ops *ops; | 29 | const struct lan9303_phy_ops *ops; |
| 30 | bool is_bridged; /* true if port 1 and 2 are bridged */ | 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 | /* LAN9303 do not offer reading specific ALR entry. Cache all | 34 | /* LAN9303 do not offer reading specific ALR entry. Cache all |
| 33 | * static entries in a flat table | 35 | * static entries in a flat table |
| 34 | **/ | 36 | **/ |
