Skip to content

Commit d3decf3

Browse files
ozancaglayanairlied
authored andcommitted
vga_switcheroo: Add include guard
Guard vga_switcheroo.h against multiple inclusion. Signed-off-by: Ozan Çağlayan <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent b7019b2 commit d3decf3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/vga_switcheroo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
* vga_switcheroo.h - Support for laptop with dual GPU using one set of outputs
88
*/
99

10+
#ifndef _LINUX_VGA_SWITCHEROO_H_
11+
#define _LINUX_VGA_SWITCHEROO_H_
12+
1013
#include <linux/fb.h>
1114

1215
struct pci_dev;
@@ -73,3 +76,4 @@ static inline int vga_switcheroo_get_client_state(struct pci_dev *dev) { return
7376

7477

7578
#endif
79+
#endif /* _LINUX_VGA_SWITCHEROO_H_ */

0 commit comments

Comments
 (0)