diff options
| author | Egil Hjelmeland <privat@egil-hjelmeland.no> | 2017-12-29 07:38:23 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-01-04 13:35:07 -0500 |
| commit | b17c6b1f4538b66e9bac6710b57b343c2aafadea (patch) | |
| tree | a8df3575ff39c9662298b5fd619a01f70bd00365 /include/linux/dsa | |
| parent | 4b24dd8022801ef75f1ce322ff2f83a51900ab5b (diff) | |
net: dsa: lan9303: phy_addr_sel_strap rename and retype
chip->phy_addr_sel_strap is declared as a bool, but is also used as an
integer address base.
Rename 'phy_addr_sel_strap' to 'phy_addr_base', and change type to int.
Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/dsa')
| -rw-r--r-- | include/linux/dsa/lan9303.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dsa/lan9303.h b/include/linux/dsa/lan9303.h index b6514c29563f..b4f22112ba75 100644 --- a/include/linux/dsa/lan9303.h +++ b/include/linux/dsa/lan9303.h | |||
| @@ -23,7 +23,7 @@ struct lan9303 { | |||
| 23 | struct regmap_irq_chip_data *irq_data; | 23 | struct regmap_irq_chip_data *irq_data; |
| 24 | struct gpio_desc *reset_gpio; | 24 | struct gpio_desc *reset_gpio; |
| 25 | u32 reset_duration; /* in [ms] */ | 25 | u32 reset_duration; /* in [ms] */ |
| 26 | bool phy_addr_sel_strap; | 26 | int phy_addr_base; |
| 27 | struct dsa_switch *ds; | 27 | struct dsa_switch *ds; |
| 28 | struct mutex indirect_mutex; /* protect indexed register access */ | 28 | struct mutex indirect_mutex; /* protect indexed register access */ |
| 29 | struct mutex alr_mutex; /* protect ALR access */ | 29 | struct mutex alr_mutex; /* protect ALR access */ |
