Skip to contentSkip to conversation

net: pcs: rzn1-miic: remove unused struct members and use miic variable

PATCH Applied Clément Léger 3 participants 3 messages Feb 8, 2023 – Feb 10, 2023

Subsystems (4)
lore
Share & tools
lore

Clément Léger

author maintainer
#0 lore raw

PATCH 1/1 net: pcs: rzn1-miic: remove unused struct members and use miic variable

Remove unused bulk clocks struct from the miic state and use an already existing miic variable in miic_config().

---
 drivers/net/pcs/pcs-rzn1-miic.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/pcs/pcs-rzn1-miic.c +1 -5
index c1424119e821..323bec5e57f8 100644
@@ -121,15 +121,11 @@ static const char *index_to_string[MIIC_MODCTRL_CONF_CONV_NUM] = {
  * struct miic - MII converter structure
  * @base: base address of the MII converter
  * @dev: Device associated to the MII converter
- * @clks: Clocks used for this device
- * @nclk: Number of clocks
  * @lock: Lock used for read-modify-write access
  */
 struct miic {
 	void __iomem *base;
 	struct device *dev;
-	struct clk_bulk_data *clks;
-	int nclk;
 	spinlock_t lock;
 };
 
@@ -232,7 +228,7 @@ static int miic_config(struct phylink_pcs *pcs, unsigned int mode,
 	}
 
 	miic_reg_rmw(miic, MIIC_CONVCTRL(port), mask, val);
-	miic_converter_enable(miic_port->miic, miic_port->port, 1);
+	miic_converter_enable(miic, miic_port->port, 1);
 
 	return 0;
 }
Signature · 1 line
2.39.0
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Wed, 8 Feb 2023 17:12:49 +0100 you wrote:

Remove unused bulk clocks struct from the miic state and use an already existing miic variable in miic_config().

---
 drivers/net/pcs/pcs-rzn1-miic.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Here is the summary with links:
- [net-next] net: pcs: rzn1-miic: remove unused struct members and use miic variable

    https://git.kernel.org/netdev/net-next/c/dc8c41320130

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Clément Léger
Quoted 4 lines · Clément Léger

Remove unused bulk clocks struct from the miic state and use an already existing miic variable in miic_config().

Thanks.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!