]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commit5c2c07a18c7d9763bcc6e47466c6bbd40fcd61fc
tree7452e64ee89601ae1504db09a348c170f35b87d8
parent23a6374c7ba6974c84753b8449299b710b28b0ff
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>
drivers/iio/pressure/zpa2326_i2c.c
drivers/iio/pressure/zpa2326_spi.c