]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
mfd: intel_soc_pmic_chtdc_ti: Drop unneeded assignment for cache_type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Jan 2025 15:28:22 +0000 (17:28 +0200)
committerLee Jones <lee@kernel.org>
Fri, 14 Mar 2025 08:59:05 +0000 (08:59 +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>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20250129152823.1802273-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/intel_soc_pmic_chtdc_ti.c

index 8582ae65a80292e75072cf5654b939a09183fda2..4c1a68c9f5750fdfe45eed9781a9ac736be56d47 100644 (file)
@@ -82,7 +82,6 @@ static const struct regmap_config chtdc_ti_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
        .max_register = 0xff,
-       .cache_type = REGCACHE_NONE,
 };
 
 static const struct regmap_irq chtdc_ti_irqs[] = {