]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
platform/x86: apple-gmux: fix gmux_get_client_id()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 30 Jul 2018 01:32:00 +0000 (03:32 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:30:49 +0000 (12:30 +0200)
commitcec348d6a7065ed976a9b51e13c3e8864abaf592
tree30f4655fc2fe9994e4745accddfc2ea27f28a7d1
parent953aa0a66b4fb3ec3351c9dd883a49940763b537
platform/x86: apple-gmux: fix gmux_get_client_id()'s return type

BugLink: http://bugs.launchpad.net/bugs/1782689
The method struct vga_switcheroo_handler::get_client_id() is defined
as returning an 'enum vga_switcheroo_client_id' but the implementation
in this driver, gmux_get_client_id(), returns an 'int'.

Fix this by returning 'enum vga_switcheroo_client_id' in this driver too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
(cherry picked from commit 19e752052b9dd5b1ab901f1982b5d2ae7c188ca2)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/platform/x86/apple-gmux.c