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 <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250129152659.1801420-1-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent c629c97 commit 59670b2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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)