]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: light: adux1020: Drop unneeded assignment for cache_type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Jan 2025 15:24:40 +0000 (17:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Feb 2025 15:16:29 +0000 (15:16 +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: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250129152546.1798306-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/adux1020.c

index 593d614b1689b2504c2c1e539a27cb39ce8812af..9240983a6cc47d0fd8a564f2d71c133c15b9af2e 100644 (file)
@@ -118,7 +118,6 @@ static const struct regmap_config adux1020_regmap_config = {
        .reg_bits = 8,
        .val_bits = 16,
        .max_register = 0x6F,
-       .cache_type = REGCACHE_NONE,
 };
 
 static const struct reg_sequence adux1020_def_conf[] = {