mbox series

[v1,0/3] iio: drop useless assignment of cache_type

Message ID 20250129152546.1798306-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series iio: drop useless assignment of cache_type | expand

Message

Andy Shevchenko Jan. 29, 2025, 3:24 p.m. UTC
Default value is REGCACHE_NONE, no need to assign it explicitly.
Fix all IIO drivers that do that.

Andy Shevchenko (3):
  iio: light: adux1020: Drop unneeded assignment for cache_type
  iio: magnetometer: af8133j: Drop unneeded assignment for cache_type
  iio: pressure: zpa2326: Drop unneeded assignment for cache_type

 drivers/iio/light/adux1020.c       | 1 -
 drivers/iio/magnetometer/af8133j.c | 1 -
 drivers/iio/pressure/zpa2326_i2c.c | 1 -
 drivers/iio/pressure/zpa2326_spi.c | 1 -
 4 files changed, 4 deletions(-)

Comments

Nuno Sá Jan. 30, 2025, 8:30 a.m. UTC | #1
On Wed, 2025-01-29 at 17:24 +0200, Andy Shevchenko wrote:
> Default value is REGCACHE_NONE, no need to assign it explicitly.
> Fix all IIO drivers that do that.
> 
> Andy Shevchenko (3):
>   iio: light: adux1020: Drop unneeded assignment for cache_type
>   iio: magnetometer: af8133j: Drop unneeded assignment for cache_type
>   iio: pressure: zpa2326: Drop unneeded assignment for cache_type
> 
>  drivers/iio/light/adux1020.c       | 1 -
>  drivers/iio/magnetometer/af8133j.c | 1 -
>  drivers/iio/pressure/zpa2326_i2c.c | 1 -
>  drivers/iio/pressure/zpa2326_spi.c | 1 -
>  4 files changed, 4 deletions(-)
> 

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Jonathan Cameron Feb. 1, 2025, 12:47 p.m. UTC | #2
On Thu, 30 Jan 2025 08:30:47 +0000
Nuno Sá <noname.nuno@gmail.com> wrote:

> On Wed, 2025-01-29 at 17:24 +0200, Andy Shevchenko wrote:
> > Default value is REGCACHE_NONE, no need to assign it explicitly.
> > Fix all IIO drivers that do that.
> > 
> > Andy Shevchenko (3):
> >   iio: light: adux1020: Drop unneeded assignment for cache_type
> >   iio: magnetometer: af8133j: Drop unneeded assignment for cache_type
> >   iio: pressure: zpa2326: Drop unneeded assignment for cache_type
> > 
> >  drivers/iio/light/adux1020.c       | 1 -
> >  drivers/iio/magnetometer/af8133j.c | 1 -
> >  drivers/iio/pressure/zpa2326_i2c.c | 1 -
> >  drivers/iio/pressure/zpa2326_spi.c | 1 -
> >  4 files changed, 4 deletions(-)
> >   
> 
> Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Applied.

Thanks,

Jonathan