Skip to contentSkip to conversation

phy: cadence: Sierra: Remove unused `regmap` field from state struct

PATCH Applied Lars-Peter Clausen 2 participants 3 messages Jul 7, 2022 – Jul 8, 2022 Generic PHY framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 phy: cadence: Sierra: Remove unused `regmap` field from state struct

The driver state struct for the sierra PHY driver has a field named regmap that is never referenced. Remove it since it is unused.

Not that there are separate fields of type struct regmap for the individual sections of the device's register map. These other regmaps are used and not affected by the patch.

---
 drivers/phy/cadence/phy-cadence-sierra.c | 1 -
 1 file changed, 1 deletion(-)
drivers/phy/cadence/phy-cadence-sierra.c +0 -1
index 73fb99ccd525..6e86a6517f37 100644
@@ -348,7 +348,6 @@ struct cdns_regmap_cdb_context {
 
 struct cdns_sierra_phy {
 	struct device *dev;
-	struct regmap *regmap;
 	const struct cdns_sierra_data *init_data;
 	struct cdns_sierra_inst phys[SIERRA_MAX_LANES];
 	struct reset_control *phy_rst;
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 phy: cadence-torrent: Remove unused `regmap` field from state struct

The driver state struct for the sierra PHY driver has a field named regmap that is never referenced. Remove it since it is unused.

Not that there are separate fields of type struct regmap for the individual sections of the device's register map. These other regmaps are used and not affected by the patch.

---
 drivers/phy/cadence/phy-cadence-torrent.c | 1 -
 1 file changed, 1 deletion(-)
drivers/phy/cadence/phy-cadence-torrent.c +0 -1
index 7c4b8050485f..f099053c583c 100644
@@ -331,7 +331,6 @@ struct cdns_torrent_phy {
 	struct cdns_torrent_inst phys[MAX_NUM_LANES];
 	int nsubnodes;
 	const struct cdns_torrent_data *init_data;
-	struct regmap *regmap;
 	struct regmap *regmap_common_cdb;
 	struct regmap *regmap_phy_pcs_common_cdb;
 	struct regmap *regmap_phy_pma_common_cdb;
Signature · 1 line
2.30.2
maintainer Applied
#2 lore raw
In reply to Lars-Peter Clausen
Quoted 6 lines · Lars-Peter Clausen

The driver state struct for the sierra PHY driver has a field named regmap that is never referenced. Remove it since it is unused.

Not that there are separate fields of type struct regmap for the individual sections of the device's register map. These other regmaps are used and not affected by the patch.

Applied both, thanks

Signature · 6 lines
~Vinod

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy