Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Li zeming and committed by
Michael Ellerman
e3e528d2 2dfcace7

+5
+5
drivers/macintosh/windfarm_pid.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 + #ifndef _WINDFARM_PID_H 3 + #define _WINDFARM_PID_H 4 + 2 5 /* 3 6 * Windfarm PowerMac thermal control. Generic PID helpers 4 7 * ··· 85 82 extern void wf_cpu_pid_init(struct wf_cpu_pid_state *st, 86 83 struct wf_cpu_pid_param *param); 87 84 extern s32 wf_cpu_pid_run(struct wf_cpu_pid_state *st, s32 power, s32 temp); 85 + 86 + #endif /* _WINDFARM_PID_H */