aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-07-07 09:59:49 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2022-11-24 23:12:18 +1100
commite3e528d29d13c01289f382a0d3ddb5312ac3dae3 (patch)
treecf17785abf52584527b454e0fbaefce922c894d2 /drivers/macintosh
parent2dfcace75e1e1dfbd89af63fce1bfe8aebe38427 (diff)
downloadlinux-e3e528d29d13c01289f382a0d3ddb5312ac3dae3.tar.gz
macintosh/windfarm_pid: Add header file macro definition
I think the header file could avoid redefinition errors at compile time by adding macro definitions. Signed-off-by: Li zeming <zeming@nfschina.com> [mpe: Add endif comment] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220707015949.3733-1-zeming@nfschina.com
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/windfarm_pid.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/macintosh/windfarm_pid.h b/drivers/macintosh/windfarm_pid.h
index 83f747dbeafcc..335613a200fb0 100644
--- a/drivers/macintosh/windfarm_pid.h
+++ b/drivers/macintosh/windfarm_pid.h
@@ -1,4 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef _WINDFARM_PID_H
+#define _WINDFARM_PID_H
+
/*
* Windfarm PowerMac thermal control. Generic PID helpers
*
@@ -82,3 +85,5 @@ struct wf_cpu_pid_state {
extern void wf_cpu_pid_init(struct wf_cpu_pid_state *st,
struct wf_cpu_pid_param *param);
extern s32 wf_cpu_pid_run(struct wf_cpu_pid_state *st, s32 power, s32 temp);
+
+#endif /* _WINDFARM_PID_H */