soc: rockchip: rockchip_system_monitor: use IS_REACHABLE instead of IS_ENABLED
Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I1726278ab44f17bb204d0c57758952f5f3896d76
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#ifndef __SOC_ROCKCHIP_SYSTEM_STATUS_H
|
||||
#define __SOC_ROCKCHIP_SYSTEM_STATUS_H
|
||||
|
||||
#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR)
|
||||
#if IS_REACHABLE(CONFIG_ROCKCHIP_SYSTEM_MONITOR)
|
||||
int rockchip_register_system_status_notifier(struct notifier_block *nb);
|
||||
int rockchip_unregister_system_status_notifier(struct notifier_block *nb);
|
||||
void rockchip_set_system_status(unsigned long status);
|
||||
|
||||
@@ -143,7 +143,7 @@ struct monitor_dev_profile {
|
||||
struct rockchip_opp_info *opp_info;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR)
|
||||
#if IS_REACHABLE(CONFIG_ROCKCHIP_SYSTEM_MONITOR)
|
||||
struct monitor_dev_info *
|
||||
rockchip_system_monitor_register(struct device *dev,
|
||||
struct monitor_dev_profile *devp);
|
||||
|
||||
Reference in New Issue
Block a user