Skip to contentSkip to conversation

vga_switcheroo: Add include guard

PATCH In review Ozan Çağlayan 1 participant 2 messages Jun 14, 2012 – Jun 19, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vga_switcheroo: Add include guard

Guard vga_switcheroo.h against multiple inclusion.

---
 include/linux/vga_switcheroo.h |    4 ++++
 1 file changed, 4 insertions(+)
include/linux/vga_switcheroo.h +4 -0
index b455c7c..9a1cf11 100644
@@ -7,6 +7,9 @@
  * vga_switcheroo.h - Support for laptop with dual GPU using one set of outputs
  */
 
+#ifndef _LINUX_VGA_SWITCHEROO_H_
+#define _LINUX_VGA_SWITCHEROO_H_
+
 #include <linux/fb.h>
 
 enum vga_switcheroo_state {
@@ -64,3 +67,4 @@ static inline void vga_switcheroo_unregister_handler(void) {}
 static inline int vga_switcheroo_process_delayed_switch(void) { return 0; }
 
 #endif
+#endif /* _LINUX_VGA_SWITCHEROO_H_ */
Signature · 6 lines
1.7.10.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel