ARM: rockchip: fix compilation error when SENSORS_ROCKCHIP_TSADC is not selected

This commit is contained in:
黄涛
2014-07-01 15:38:56 +08:00
parent 0b3023b70c
commit 7bce321881

View File

@@ -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