platform/x86: apple-gmux: fix gmux_get_client_id()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 24 Apr 2018 13:15:43 +0000 (15:15 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Apr 2018 16:55:33 +0000 (19:55 +0300)
commit19e752052b9dd5b1ab901f1982b5d2ae7c188ca2
treea45d188fab13af61ec38b20ceec9d7ef6f760511
parent6ed66c3ce095ae65bbc976b5817c318653745736
platform/x86: apple-gmux: fix gmux_get_client_id()'s return type

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>
drivers/platform/x86/apple-gmux.c