mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "ASoC: wsa881x: Update temperature value during device down"
This commit is contained in:
commit
aa9c44a396
1 changed files with 5 additions and 3 deletions
|
|
@ -80,9 +80,11 @@ temp_retry:
|
|||
if (pdata->wsa_temp_reg_read) {
|
||||
ret = pdata->wsa_temp_reg_read(codec, ®);
|
||||
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__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue