Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ffdcd3d authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron
Browse files

iio: use I2C_FUNC_SMBUS_I2C_BLOCK macro



I do not see why the driver requires I2C_FUNC_SMBUS_I2C_BLOCK,
actually only single bytes or words are transferred

Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Cc: Ge Gao <ggao@invensense.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 71866079
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -663,8 +663,8 @@ static int inv_mpu_probe(struct i2c_client *client,
	int result;
	int result;


	if (!i2c_check_functionality(client->adapter,
	if (!i2c_check_functionality(client->adapter,
					I2C_FUNC_SMBUS_READ_I2C_BLOCK |
		I2C_FUNC_SMBUS_I2C_BLOCK)) {
					I2C_FUNC_SMBUS_WRITE_I2C_BLOCK)) {

		result = -ENOSYS;
		result = -ENOSYS;
		goto out_no_free;
		goto out_no_free;
	}
	}