diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-06-23 17:28:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-03 13:40:29 -0400 |
commit | 2ffdcd3dec720c6213b52f3fd8f5681e2d015cdf (patch) | |
tree | 8665219910dddba69416bf0fa247c2a65b8a8dc7 /drivers/iio/imu | |
parent | 71866079dd90528f814c84918635be2096b78915 (diff) |
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: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Ge Gao <ggao@invensense.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r-- | drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c index fe4c61e219f3..6a1ff803862c 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | |||
@@ -663,8 +663,8 @@ static int inv_mpu_probe(struct i2c_client *client, | |||
663 | int result; | 663 | int result; |
664 | 664 | ||
665 | if (!i2c_check_functionality(client->adapter, | 665 | if (!i2c_check_functionality(client->adapter, |
666 | I2C_FUNC_SMBUS_READ_I2C_BLOCK | | 666 | I2C_FUNC_SMBUS_I2C_BLOCK)) { |
667 | I2C_FUNC_SMBUS_WRITE_I2C_BLOCK)) { | 667 | |
668 | result = -ENOSYS; | 668 | result = -ENOSYS; |
669 | goto out_no_free; | 669 | goto out_no_free; |
670 | } | 670 | } |