projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dfcace
)
macintosh/windfarm_pid: Add header file macro definition
author
Li zeming
<zeming@nfschina.com>
Thu, 7 Jul 2022 01:59:49 +0000
(09:59 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 24 Nov 2022 12:12:18 +0000
(23:12 +1100)
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
drivers/macintosh/windfarm_pid.h
patch
|
blob
|
history
diff --git
a/drivers/macintosh/windfarm_pid.h
b/drivers/macintosh/windfarm_pid.h
index
83f747d
..
335613a
100644
(file)
--- 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 */