projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b3023b
)
ARM: rockchip: fix compilation error when SENSORS_ROCKCHIP_TSADC is not selected
author
黄涛
<huangtao@rock-chips.com>
Tue, 1 Jul 2014 07:38:56 +0000
(15:38 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Tue, 1 Jul 2014 07:51:57 +0000
(15:51 +0800)
include/linux/rockchip/common.h
patch
|
blob
|
history
diff --git
a/include/linux/rockchip/common.h
b/include/linux/rockchip/common.h
index abe824ecaa340f9c72b0fe5d0aeb73e3f695d8b0..b830fbe1cf863e12c0d5b1536ca13c6ec57fbb66 100644
(file)
--- a/
include/linux/rockchip/common.h
+++ b/
include/linux/rockchip/common.h
@@
-58,4
+58,10
@@
extern int rockchip_set_system_status(unsigned long status);
extern int rockchip_clear_system_status(unsigned long status);
extern unsigned long rockchip_get_system_status(void);
+#if IS_ENABLED(CONFIG_SENSORS_ROCKCHIP_TSADC)
+extern int rockchip_tsadc_get_temp(int chn);
+#else
+static inline int rockchip_tsadc_get_temp(int chn) { return 0; }
+#endif
+
#endif