Commit e52bbd2f authored by Amit Kucheria's avatar Amit Kucheria Committed by Eduardo Valentin

drivers: thermal: tsens: Move calibration constants to header file

This will allow calibration routines to correctly include the constants
from anywhere and allow more code sharing.
Signed-off-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent e8c24c6f
...@@ -12,11 +12,6 @@ ...@@ -12,11 +12,6 @@
#include <linux/regmap.h> #include <linux/regmap.h>
#include "tsens.h" #include "tsens.h"
#define CAL_DEGC_PT1 30
#define CAL_DEGC_PT2 120
#define SLOPE_FACTOR 1000
#define SLOPE_DEFAULT 3200
char *qfprom_read(struct device *dev, const char *cname) char *qfprom_read(struct device *dev, const char *cname)
{ {
struct nvmem_cell *cell; struct nvmem_cell *cell;
......
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
#define ONE_PT_CALIB 0x1 #define ONE_PT_CALIB 0x1
#define ONE_PT_CALIB2 0x2 #define ONE_PT_CALIB2 0x2
#define TWO_PT_CALIB 0x3 #define TWO_PT_CALIB 0x3
#define CAL_DEGC_PT1 30
#define CAL_DEGC_PT2 120
#define SLOPE_FACTOR 1000
#define SLOPE_DEFAULT 3200
#include <linux/thermal.h> #include <linux/thermal.h>
#include <linux/regmap.h> #include <linux/regmap.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment