OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thermal: Remove debug or error messages in get_temp() ops
[tomoyo/tomoyo-test1.git]
/
drivers
/
thermal
/
thermal-generic-adc.c
diff --git
a/drivers/thermal/thermal-generic-adc.c
b/drivers/thermal/thermal-generic-adc.c
index
2c283e7
..
017b0ce
100644
(file)
--- a/
drivers/thermal/thermal-generic-adc.c
+++ b/
drivers/thermal/thermal-generic-adc.c
@@
-59,10
+59,9
@@
static int gadc_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
int ret;
ret = iio_read_channel_processed(gti->channel, &val);
- if (ret < 0) {
- dev_err(gti->dev, "IIO channel read failed %d\n", ret);
+ if (ret < 0)
return ret;
- }
+
*temp = gadc_thermal_adc_to_temp(gti, val);
return 0;