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

Commit aa9c44a3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wsa881x: Update temperature value during device down"

parents 4e3fcbf1 4b9d12f1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -80,9 +80,11 @@ int wsa881x_get_temp(struct thermal_zone_device *thermal,
	if (pdata->wsa_temp_reg_read) {
		ret = pdata->wsa_temp_reg_read(codec, &reg);
		if (ret) {
			pr_err("%s: temperature register read failed: %d\n",
				__func__, ret);
			return ret;
			pr_err("%s: temp read failed: %d, current temp: %d\n",
				__func__, ret, pdata->curr_temp);
			if (temp)
				*temp = pdata->curr_temp;
			return 0;
		}
	} else {
		pr_err("%s: wsa_temp_reg_read is NULL\n", __func__);