iio: use I2C_FUNC_SMBUS_I2C_BLOCK macro
authorPeter Meerwald <pmeerw@pmeerw.net>
Sun, 23 Jun 2013 21:28:00 +0000 (22:28 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:40:29 +0000 (18:40 +0100)
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>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c

index fe4c61e..6a1ff80 100644 (file)
@@ -663,8 +663,8 @@ static int inv_mpu_probe(struct i2c_client *client,
        int result;
 
        if (!i2c_check_functionality(client->adapter,
-                                       I2C_FUNC_SMBUS_READ_I2C_BLOCK |
-                                       I2C_FUNC_SMBUS_WRITE_I2C_BLOCK)) {
+               I2C_FUNC_SMBUS_I2C_BLOCK)) {
+
                result = -ENOSYS;
                goto out_no_free;
        }