From 6a3b58394f8f0c53483af415a3bcf32ba701609e Mon Sep 17 00:00:00 2001 From: guoyi Date: Wed, 14 Jan 2015 15:05:07 +0800 Subject: [PATCH] sensor: fix mpu6880_acc.c waring. --- drivers/input/sensors/accel/mpu6880_acc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/sensors/accel/mpu6880_acc.c b/drivers/input/sensors/accel/mpu6880_acc.c index 767ed4341e0b..0b5ca796aff0 100644 --- a/drivers/input/sensors/accel/mpu6880_acc.c +++ b/drivers/input/sensors/accel/mpu6880_acc.c @@ -50,7 +50,7 @@ static int sensor_active(struct i2c_client *client, int enable, int rate) status = BIT_ACCEL_STBY; sensor->ops->ctrl_data |= status; //gyroºÍacc¶¼²»¹¤×÷ʱ£¬Ä£¿é½øÈëÐÝÃß - if(sensor->ops->ctrl_data & (BIT_ACCEL_STBY | BIT_GYRO_STBY) != 0) + if(sensor->ops->ctrl_data && (BIT_ACCEL_STBY | BIT_GYRO_STBY) != 0) { pwrm1 |= MPU6880_PWRM1_SLEEP; } -- 2.34.1