Skip to content

Commit

Permalink
MA-18223-2 Cannot access /sys/class/thermal/thermal_zoneX/temp on 8mp
Browse files Browse the repository at this point in the history
change "ifdef CONFIG_DEVICE_THERMAL" to "if IS_ENABLED(CONFIG_DEVICE_THERMAL)"
to enable the module with IS_BUILTIN(option) or IS_MODULE(option)).

Change-Id: I116ed60acae56629713163888cb4a7d5a2d6acb3
Signed-off-by: Dandan Sun <[email protected]>
  • Loading branch information
Dandan Sun committed Nov 17, 2020
1 parent 9c0a7ef commit 475fe7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static sc_ipc_t gpu_ipcHandle;
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>

#ifdef CONFIG_DEVICE_THERMAL
#if IS_ENABLED(CONFIG_DEVICE_THERMAL)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
# include <linux/device_cooling.h>
# define REG_THERMAL_NOTIFIER(a) register_devfreq_cooling_notifier(a);
Expand Down
2 changes: 1 addition & 1 deletion include/linux/device_cooling.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <linux/thermal.h>

#ifdef CONFIG_DEVICE_THERMAL
#if IS_ENABLED(CONFIG_DEVICE_THERMAL)
int register_devfreq_cooling_notifier(struct notifier_block *nb);
int unregister_devfreq_cooling_notifier(struct notifier_block *nb);
struct thermal_cooling_device *devfreq_cooling_register(struct device_node *np,
Expand Down

0 comments on commit 475fe7f

Please sign in to comment.