aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vga_switcheroo.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-06-15 12:46:17 -0700
committerDave Airlie <airlied@redhat.com>2012-06-16 11:11:25 +0100
commitf8fee8f5acb5c3f82e02f2ae139a6f1e7b4eb583 (patch)
tree1d8d88372f97cce670c91681df7417143867c86f /include/linux/vga_switcheroo.h
parentdrm/udl: only bind to the video devices on the hub. (diff)
downloadlinux-dev-f8fee8f5acb5c3f82e02f2ae139a6f1e7b4eb583.tar.xz
linux-dev-f8fee8f5acb5c3f82e02f2ae139a6f1e7b4eb583.zip
vga_switcheroo.h: fix pci_dev warning
Fix warnings on some architectures/configs (not on x86): include/linux/vga_switcheroo.h:28:30: warning: 'struct pci_dev' declared inside parameter list [enabled by default] include/linux/vga_switcheroo.h:28:30: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Cc: Takashi Iwai <tiwai@suse.de> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/linux/vga_switcheroo.h')
-rw-r--r--include/linux/vga_switcheroo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/vga_switcheroo.h b/include/linux/vga_switcheroo.h
index 60da41fe9dc2..d844b7790ea6 100644
--- a/include/linux/vga_switcheroo.h
+++ b/include/linux/vga_switcheroo.h
@@ -9,6 +9,8 @@
#include <linux/fb.h>
+struct pci_dev;
+
enum vga_switcheroo_state {
VGA_SWITCHEROO_OFF,
VGA_SWITCHEROO_ON,