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>
This commit is contained in:
Lukas Wunner
2015-08-28 11:56:26 +02:00
committed by Daniel Vetter
szülő 235fabe09b
commit 203d027de4
2 fájl változott, egészen pontosan 5 új sor hozzáadva és 5 régi sor törölve

Fájl megtekintése

@@ -100,7 +100,7 @@
struct vga_switcheroo_client {
struct pci_dev *pdev;
struct fb_info *fb_info;
int pwr_state;
enum vga_switcheroo_state pwr_state;
const struct vga_switcheroo_client_ops *ops;
int id;
bool active;
@@ -344,7 +344,7 @@ find_active_client(struct list_head *head)
*
* Return: Power state.
*/
int vga_switcheroo_get_client_state(struct pci_dev *pdev)
enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *pdev)
{
struct vga_switcheroo_client *client;
enum vga_switcheroo_state ret;
@@ -496,7 +496,7 @@ static int vga_switchoff(struct vga_switcheroo_client *client)
return 0;
}
static void set_audio_state(int id, int state)
static void set_audio_state(int id, enum vga_switcheroo_state state)
{
struct vga_switcheroo_client *client;