]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: pressure: zpa2326: Drop unneeded assignment for cache_type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Jan 2025 15:24:42 +0000 (17:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Feb 2025 15:16:30 +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-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/zpa2326_i2c.c
drivers/iio/pressure/zpa2326_spi.c

index 49a239ebdabff56dd81efbade18f82494d7e264f..a6034bf05d97e128d96492aed7e942ee124a0be3 100644 (file)
@@ -25,7 +25,6 @@ static const struct regmap_config zpa2326_regmap_i2c_config = {
        .precious_reg   = zpa2326_isreg_precious,
        .max_register   = ZPA2326_TEMP_OUT_H_REG,
        .read_flag_mask = BIT(7),
-       .cache_type     = REGCACHE_NONE,
 };
 
 static unsigned int zpa2326_i2c_hwid(const struct i2c_client *client)
index 317270fa1c435196db6386d7ecb37d1c29bb8ed1..c678f5b96266f37c69fac4af01d4fc58654cf119 100644 (file)
@@ -26,7 +26,6 @@ static const struct regmap_config zpa2326_regmap_spi_config = {
        .precious_reg   = zpa2326_isreg_precious,
        .max_register   = ZPA2326_TEMP_OUT_H_REG,
        .read_flag_mask = BIT(7) | BIT(6),
-       .cache_type     = REGCACHE_NONE,
 };
 
 static int zpa2326_probe_spi(struct spi_device *spi)