summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko2025-01-29 17:24:40 +0200
committerJonathan Cameron2025-02-08 15:16:29 +0000
commit7b465a0d58c19a45ddf81c90bc8ba04693de038b (patch)
tree5303657f9e8e8f861852523508204d8e2258440f
parent7530ed2aaa3f49325cad3ca80aa245897ed10e32 (diff)
iio: light: adux1020: 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> 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>
-rw-r--r--drivers/iio/light/adux1020.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/light/adux1020.c b/drivers/iio/light/adux1020.c
index 593d614b1689..9240983a6cc4 100644
--- a/drivers/iio/light/adux1020.c
+++ b/drivers/iio/light/adux1020.c
@@ -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[] = {