Commit b410a930 authored by Sean Nyekjaer's avatar Sean Nyekjaer Committed by Jonathan Cameron
Browse files

iio: accel: fxls8962af: errata bug only applicable for FXLS8962AF



Remove special errata handling if FXLS8964AF is used.

Fixes: af959b7b ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
Signed-off-by: default avatarSean Nyekjaer <sean@geanix.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230605103223.1400980-2-sean@geanix.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d1cfbd52
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -903,9 +903,10 @@ static int fxls8962af_fifo_transfer(struct fxls8962af_data *data,
	int total_length = samples * sample_length;
	int ret;

	if (i2c_verify_client(dev))
	if (i2c_verify_client(dev) &&
	    data->chip_info->chip_id == FXLS8962AF_DEVICE_ID)
		/*
		 * Due to errata bug:
		 * Due to errata bug (only applicable on fxls8962af):
		 * E3: FIFO burst read operation error using I2C interface
		 * We have to avoid burst reads on I2C..
		 */