From 1890971d653859de433d9db0081aeb3e1ebfd3a8 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Tue, 14 Jul 2020 19:22:24 +0800 Subject: [PATCH] soc: rockchip: system-monitor: Add support to be built as module Signed-off-by: Finley Xiao Change-Id: If59392732efe0dc1cb20e49115a1a1f65854bd7a --- drivers/soc/rockchip/Kconfig | 2 +- include/soc/rockchip/rockchip-system-status.h | 2 +- include/soc/rockchip/rockchip_system_monitor.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index 6da20df77f46..4a63f1952524 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -91,7 +91,7 @@ config ROCKCHIP_SUSPEND_MODE Say Y here if you want to set the suspend mode to the ATF. config ROCKCHIP_SYSTEM_MONITOR - bool "Rockchip system monitor support" + tristate "Rockchip system monitor support" default y help Say y here to enable rockchip system monitor support. diff --git a/include/soc/rockchip/rockchip-system-status.h b/include/soc/rockchip/rockchip-system-status.h index 8a40ed16f8a8..200b1ee89602 100644 --- a/include/soc/rockchip/rockchip-system-status.h +++ b/include/soc/rockchip/rockchip-system-status.h @@ -6,7 +6,7 @@ #ifndef __SOC_ROCKCHIP_SYSTEM_STATUS_H #define __SOC_ROCKCHIP_SYSTEM_STATUS_H -#ifdef CONFIG_ROCKCHIP_SYSTEM_MONITOR +#if IS_ENABLED(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); diff --git a/include/soc/rockchip/rockchip_system_monitor.h b/include/soc/rockchip/rockchip_system_monitor.h index bae6f6fe8a37..1f8bffc84212 100644 --- a/include/soc/rockchip/rockchip_system_monitor.h +++ b/include/soc/rockchip/rockchip_system_monitor.h @@ -113,7 +113,7 @@ struct monitor_dev_profile { struct cpumask allowed_cpus; }; -#ifdef CONFIG_ROCKCHIP_SYSTEM_MONITOR +#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR) struct monitor_dev_info * rockchip_system_monitor_register(struct device *dev, struct monitor_dev_profile *devp);