projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iio: use I2C_FUNC_SMBUS_I2C_BLOCK macro
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
iio
/
imu
/
inv_mpu6050
/
inv_mpu_core.c
diff --git
a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
index fe4c61e219f38781d194028be6bad811287b36e6..6a1ff803862cafb2915ff51f59f22d79f3457de0 100644
(file)
--- 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,
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;
}