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

Commit e26a1b23 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

drivers: thermal: Return zero on success for qmi_tmd_send_state_request



The qmi APIs return a positive transaction result value on successful
qmi message update for all qmi cooling devices. The qmi cooling
devices return the same value for cooling device state update request
from thermal framework. But thermal framework expects zero as return
value for successful cdev update and then only it will update cooling
device stats for that cooling device.

Update qmi cooling device driver to return zero on successful cooling
device state update to thermal framework.

Change-Id: Id9d59ed2c88c7e95dc2746a061e0ebadf0477a30
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent b46a5e27
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -218,6 +218,7 @@ static int qmi_tmd_send_state_request(struct qmi_cooling_device *qmi_cdev,
			state, qmi_cdev->cdev_name, ret);
			state, qmi_cdev->cdev_name, ret);
		goto qmi_send_exit;
		goto qmi_send_exit;
	}
	}
	ret = 0;
	pr_debug("Requested qmi state:%d for %s\n", state, qmi_cdev->cdev_name);
	pr_debug("Requested qmi state:%d for %s\n", state, qmi_cdev->cdev_name);


qmi_send_exit:
qmi_send_exit: