UPSTREAM: usb: dwc3: omap: use request_threaded_irq()
[firefly-linux-kernel-4.4.55.git] / drivers / hwmon / rockchip-hwmon.c
index 4aa4d480743e2ef73d9ffb05e5d2f7c3c832859e..bed728ed4e49d7fb5eb82f7d2d4be0f871959e1e 100755 (executable)
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 #include <linux/sysfs.h>
 #include <linux/workqueue.h>
+#include <linux/rockchip/common.h>
 #include "hwmon-rockchip.h"
 
 
@@ -68,7 +69,7 @@ static void tsadc_monitor(struct work_struct *work)
                        continue;
 
                temp = data->ops.read_sensor(i);
-               if (temp == 150) {
+               if (temp == INVALID_TEMP) {
                        dev_err(&data->pdev->dev, "TSADC read failed\n");
                        continue;
                }