]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
leds: lp8860: Drop unneeded assignment for cache_type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Jan 2025 15:26:59 +0000 (17:26 +0200)
committerLee Jones <lee@kernel.org>
Mon, 10 Feb 2025 17:34:57 +0000 (17:34 +0000)
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>
drivers/leds/leds-lp8860.c

index 06196d851ade71f1998613f8981b8c9454ed7430..995f2adf856960df996e41eae556a2773a7ec07b 100644 (file)
@@ -331,7 +331,6 @@ static const struct regmap_config lp8860_regmap_config = {
        .max_register = LP8860_EEPROM_UNLOCK,
        .reg_defaults = lp8860_reg_defs,
        .num_reg_defaults = ARRAY_SIZE(lp8860_reg_defs),
-       .cache_type = REGCACHE_NONE,
 };
 
 static const struct reg_default lp8860_eeprom_defs[] = {
@@ -369,7 +368,6 @@ static const struct regmap_config lp8860_eeprom_regmap_config = {
        .max_register = LP8860_EEPROM_REG_24,
        .reg_defaults = lp8860_eeprom_defs,
        .num_reg_defaults = ARRAY_SIZE(lp8860_eeprom_defs),
-       .cache_type = REGCACHE_NONE,
 };
 
 static int lp8860_probe(struct i2c_client *client)