From: guoyi Date: Wed, 14 Jan 2015 07:05:07 +0000 (+0800) Subject: sensor: fix mpu6880_acc.c waring. X-Git-Tag: firefly_0821_release~4299 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a3b58394f8f0c53483af415a3bcf32ba701609e;p=firefly-linux-kernel-4.4.55.git sensor: fix mpu6880_acc.c waring. --- 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; }