* [PATCH v1 1/1] leds: lp8860: Drop unneeded assignment for cache_type
@ 2025-01-29 15:26 Andy Shevchenko
2025-02-10 17:35 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2025-01-29 15:26 UTC (permalink / raw)
To: linux-leds, linux-kernel; +Cc: Pavel Machek, Lee Jones, 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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/leds/leds-lp8860.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/leds/leds-lp8860.c b/drivers/leds/leds-lp8860.c
index 06196d851ade..995f2adf8569 100644
--- a/drivers/leds/leds-lp8860.c
+++ b/drivers/leds/leds-lp8860.c
@@ -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)
--
2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH v1 1/1] leds: lp8860: Drop unneeded assignment for cache_type
2025-01-29 15:26 [PATCH v1 1/1] leds: lp8860: Drop unneeded assignment for cache_type Andy Shevchenko
@ 2025-02-10 17:35 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2025-02-10 17:35 UTC (permalink / raw)
To: linux-leds, linux-kernel, Andy Shevchenko; +Cc: Pavel Machek, Lee Jones
On Wed, 29 Jan 2025 17:26:59 +0200, Andy Shevchenko wrote:
> 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, thanks!
[1/1] leds: lp8860: Drop unneeded assignment for cache_type
commit: 59670b23bfb649b29ad185618116d522f0e7ae90
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-10 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-29 15:26 [PATCH v1 1/1] leds: lp8860: Drop unneeded assignment for cache_type Andy Shevchenko
2025-02-10 17:35 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®