Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb037971 authored by Daqing Chen's avatar Daqing Chen
Browse files

input: sensors: modify a logic error for lis3dh sensor



Modify an error for lis3dh sensor after judge the sensor update odr
success of not.

Change-Id: Ifd14f4866f22b37af16e42573e16f309981c10f6
Signed-off-by: default avatarDaqing Chen <chendaqing@codeaurora.org>
parent 179fd82c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1637,7 +1637,7 @@ static int lis3dh_acc_poll_delay_set(struct sensors_classdev *sensors_cdev,
	 */
	if (atomic_read(&acc->enabled)) {
		err = lis3dh_acc_update_odr(acc, delay_msec);
		if (!err) {
		if (err < 0) {
			dev_err(&acc->client->dev, "Cannot update ODR\n");
			err = -EBUSY;
			goto exit;