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

Commit 4057085d authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

thermal: tsens: Fix return cast type



Fix return type for get_tsens_sensor_for_client_id() to account
for negative error codes.

Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
Change-Id: Id7be88b3a2462a70172fa2fe9812debed17acf75
parent 314068cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -854,7 +854,7 @@ static struct tsens_tm_device *tsens_controller_is_present(void)
	return tmdev_chip;
}

static uint32_t get_tsens_sensor_for_client_id(struct tsens_tm_device *tmdev,
static int32_t get_tsens_sensor_for_client_id(struct tsens_tm_device *tmdev,
						uint32_t sensor_client_id)
{
	bool id_found = false;