Loading asoc/codecs/wsa881x-temp-sensor.c +5 −3 Original line number Diff line number Diff line Loading @@ -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, ®); 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 Loading
asoc/codecs/wsa881x-temp-sensor.c +5 −3 Original line number Diff line number Diff line Loading @@ -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, ®); 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