Skip to contentSkip to conversation

staging: gpib: Fix uapi include header guard name

PATCH New Dave Penkler 1 participant 1 message May 9, 2025 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: gpib: Fix uapi include header guard name

When gpib_user.h was renamed to gpio.h the include guard name was not changed accordingly.

Change the include guard name to correspond with the file name and cleanup the comments after the #endif.

Fixes c7184cbf5530 ("staging: gpib: Rename common include file")
---
 drivers/staging/gpib/uapi/gpib.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/gpib/uapi/gpib.h +3 -4
index 4ca3cc9e0cd7..667e2fcc9130 100644
@@ -4,8 +4,8 @@
  *    copyright		   : (C) 2002 by Frank Mori Hess
  ***************************************************************************/
 
-#ifndef _GPIB_USER_H
-#define _GPIB_USER_H
+#ifndef _GPIB_H
+#define _GPIB_H
 
 #define GPIB_MAX_NUM_BOARDS 16
 #define GPIB_MAX_NUM_DESCRIPTORS 0x1000
@@ -298,6 +298,5 @@ enum gpib_stb {
 	IB_STB_MAV = 0x10	 /* IEEE 488.2 only */
 };
 
-#endif	/* _GPIB_USER_H */
+#endif	/* _GPIB_H */
 
-/* Check for errors */
Signature · 1 line
2.49.0