#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/workqueue.h>
+#include <linux/rockchip/common.h>
#include "hwmon-rockchip.h"
continue;
temp = data->ops.read_sensor(i);
- if (temp == 150) {
+ if (temp == INVALID_TEMP) {
dev_err(&data->pdev->dev, "TSADC read failed\n");
continue;
}