aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/vga_switcheroo.h
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2015-08-28 11:56:26 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-10-16 15:50:55 +0200
commit203d027de4d7068c607b60d4310a1599dec8839f (patch)
tree2272ac4deb4815c558531627c16f6e8d8a20be6a /include/linux/vga_switcheroo.h
parentdrm: Add DRM_DEBUG_VBL() (diff)
downloadwireguard-linux-203d027de4d7068c607b60d4310a1599dec8839f.tar.xz
wireguard-linux-203d027de4d7068c607b60d4310a1599dec8839f.zip
vga_switcheroo: Use enum vga_switcheroo_state instead of int
Signed-off-by: Lukas Wunner <lukas@wunner.de> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/vga_switcheroo.h')
-rw-r--r--include/linux/vga_switcheroo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/vga_switcheroo.h b/include/linux/vga_switcheroo.h
index 376499197717..e63661757505 100644
--- a/include/linux/vga_switcheroo.h
+++ b/include/linux/vga_switcheroo.h
@@ -138,7 +138,7 @@ void vga_switcheroo_unregister_handler(void);
int vga_switcheroo_process_delayed_switch(void);
-int vga_switcheroo_get_client_state(struct pci_dev *dev);
+enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev);
void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic);
@@ -157,7 +157,7 @@ static inline int vga_switcheroo_register_audio_client(struct pci_dev *pdev,
int id) { return 0; }
static inline void vga_switcheroo_unregister_handler(void) {}
static inline int vga_switcheroo_process_delayed_switch(void) { return 0; }
-static inline int vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; }
+static inline enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; }
static inline void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic) {}