diff options
| author | Arun Ramadoss <[email protected]> | 2022-05-17 09:43:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-05-18 11:51:00 +0000 |
| commit | 008db08b64f44dfc69efb788e8b4bfa43ba91700 (patch) | |
| tree | fe450860fb8dd22cce2e2bc0e99e69232a90c276 /drivers/net/dsa/microchip/ksz_common.h | |
| parent | net: dsa: microchip: add the phylink get_caps (diff) | |
| download | kernel-008db08b64f44dfc69efb788e8b4bfa43ba91700.tar.gz kernel-008db08b64f44dfc69efb788e8b4bfa43ba91700.zip | |
net: dsa: microchip: remove unused members in ksz_device
The name, regs_size and overrides members in struct ksz_device are
unused. Hence remove it.
And host_mask is used in only place of ksz8795.c file, which can be
replaced by dev->info->cpu_ports
Signed-off-by: Arun Ramadoss <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index de963f0f83e2..8500eaedad67 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -73,7 +73,6 @@ struct ksz_port { struct ksz_device { struct dsa_switch *ds; struct ksz_platform_data *pdata; - const char *name; const struct ksz_chip_data *info; struct mutex dev_mutex; /* device access */ @@ -94,7 +93,6 @@ struct ksz_device { int cpu_port; /* port connected to CPU */ int phy_port_cnt; phy_interface_t compat_interface; - u32 regs_size; bool synclko_125; bool synclko_disable; @@ -106,8 +104,6 @@ struct ksz_device { u16 mirror_rx; u16 mirror_tx; u32 features; /* chip specific features */ - u32 overrides; /* chip functions set by user */ - u16 host_mask; u16 port_mask; }; |
