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:
Tao Huang
2022-09-29 10:02:27 +08:00
parent cf0e68c8b4
commit 4f1d178da1
2 changed files with 2 additions and 2 deletions
@@ -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);