Skip to contentSkip to conversation

hwmon: (gsc) drop unneeded assignment for cache_type

PATCH Applied Andy Shevchenko 2 participants 2 messages Jan 29, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (gsc) drop unneeded assignment for cache_type

REGCACHE_NONE is the default type of the cache when not provided. Drop unneeded explicit assignment to it.

Note, it's defined to 0, and if ever be redefined, it will break literally a lot of the drivers, so it very unlikely to happen.

---
 drivers/hwmon/gsc-hwmon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hwmon/gsc-hwmon.c +0 -1
index 14a6385cd7cc..0f9af82cebec 100644
@@ -47,7 +47,6 @@ static const struct regmap_bus gsc_hwmon_regmap_bus = {
 static const struct regmap_config gsc_hwmon_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_NONE,
 };
 
 static ssize_t pwm_auto_point_temp_show(struct device *dev,
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
maintainer Applied
#1 lore raw
Quoted 7 lines · Andy Shevchenko

REGCACHE_NONE is the default type of the cache when not provided. Drop unneeded explicit assignment to it.

Note, it's defined to 0, and if ever be redefined, it will break literally a lot of the drivers, so it very unlikely to happen.

Applied to hwmon-next.

Note that the branch will only be pushed to linux-next after the commit window closed.

Thanks,
Guenter