Skip to content

Commit 59670b2

Browse files
andy-shevlag-linaro
authored andcommitted
leds: lp8860: 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. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c629c97 commit 59670b2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/leds/leds-lp8860.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ static const struct regmap_config lp8860_regmap_config = {
331331
.max_register = LP8860_EEPROM_UNLOCK,
332332
.reg_defaults = lp8860_reg_defs,
333333
.num_reg_defaults = ARRAY_SIZE(lp8860_reg_defs),
334-
.cache_type = REGCACHE_NONE,
335334
};
336335

337336
static const struct reg_default lp8860_eeprom_defs[] = {
@@ -369,7 +368,6 @@ static const struct regmap_config lp8860_eeprom_regmap_config = {
369368
.max_register = LP8860_EEPROM_REG_24,
370369
.reg_defaults = lp8860_eeprom_defs,
371370
.num_reg_defaults = ARRAY_SIZE(lp8860_eeprom_defs),
372-
.cache_type = REGCACHE_NONE,
373371
};
374372

375373
static int lp8860_probe(struct i2c_client *client)

0 commit comments

Comments
 (0)