From: 黄涛 Date: Tue, 1 Jul 2014 07:38:56 +0000 (+0800) Subject: ARM: rockchip: fix compilation error when SENSORS_ROCKCHIP_TSADC is not selected X-Git-Tag: firefly_0821_release~5011 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7bce321881df6392d770e2feb0e646d0524d5f43;p=firefly-linux-kernel-4.4.55.git ARM: rockchip: fix compilation error when SENSORS_ROCKCHIP_TSADC is not selected --- diff --git a/include/linux/rockchip/common.h b/include/linux/rockchip/common.h index abe824ecaa34..b830fbe1cf86 100644 --- 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