Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: pressure: zpa2326: 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-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
5c2c07a1 23a6374c

-2
-1
drivers/iio/pressure/zpa2326_i2c.c
··· 25 25 .precious_reg = zpa2326_isreg_precious, 26 26 .max_register = ZPA2326_TEMP_OUT_H_REG, 27 27 .read_flag_mask = BIT(7), 28 - .cache_type = REGCACHE_NONE, 29 28 }; 30 29 31 30 static unsigned int zpa2326_i2c_hwid(const struct i2c_client *client)
-1
drivers/iio/pressure/zpa2326_spi.c
··· 26 26 .precious_reg = zpa2326_isreg_precious, 27 27 .max_register = ZPA2326_TEMP_OUT_H_REG, 28 28 .read_flag_mask = BIT(7) | BIT(6), 29 - .cache_type = REGCACHE_NONE, 30 29 }; 31 30 32 31 static int zpa2326_probe_spi(struct spi_device *spi)