mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
net: dsa: microchip: Remove unused ksz8_all_queues_split()
ksz8_all_queues_split() isn't used anywhere. Remove it. Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com> Link: https://patch.msgid.link/20260505-clean-ksz-driver-v1-1-05d70fa42461@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
50223dfd66
commit
ac271f93f2
|
|
@ -267,21 +267,6 @@ static int ksz8_port_queue_split(struct ksz_device *dev, int port, int queues)
|
|||
return ksz_prmw8(dev, port, reg_2q, mask_2q, data_2q);
|
||||
}
|
||||
|
||||
int ksz8_all_queues_split(struct ksz_device *dev, int queues)
|
||||
{
|
||||
struct dsa_switch *ds = dev->ds;
|
||||
const struct dsa_port *dp;
|
||||
|
||||
dsa_switch_for_each_port(dp, ds) {
|
||||
int ret = ksz8_port_queue_split(dev, dp->index, queues);
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt)
|
||||
{
|
||||
const u32 *masks;
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ void ksz8_phylink_mac_link_up(struct phylink_config *config,
|
|||
struct phy_device *phydev, unsigned int mode,
|
||||
phy_interface_t interface, int speed, int duplex,
|
||||
bool tx_pause, bool rx_pause);
|
||||
int ksz8_all_queues_split(struct ksz_device *dev, int queues);
|
||||
|
||||
u32 ksz8463_get_port_addr(int port, int offset);
|
||||
int ksz8463_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user