[PATCH] macintosh/ams/ams: Add header file macro definition

Li zeming zeming at nfschina.com
Thu Jul 7 11:53:52 AEST 2022


Add header file macro definition.

Signed-off-by: Li zeming <zeming at nfschina.com>
---
 drivers/macintosh/ams/ams.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/macintosh/ams/ams.h b/drivers/macintosh/ams/ams.h
index 935bdd9cd9a6..5ec5547f151b 100644
--- a/drivers/macintosh/ams/ams.h
+++ b/drivers/macintosh/ams/ams.h
@@ -1,4 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _AMS_H
+#define _AMS_H
+
 #include <linux/i2c.h>
 #include <linux/input.h>
 #include <linux/kthread.h>
@@ -69,3 +72,4 @@ extern int ams_i2c_init(struct device_node *np);
 
 extern int ams_input_init(void);
 extern void ams_input_exit(void);
+#endif
-- 
2.18.2



More information about the Linuxppc-dev mailing list