sony-laptop: Fix reporting of gfx_switch_status
Signed-off-by: Daniel Serpell <daniel.serpell@gmail.com> Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:
parent
03a174b35c
commit
0b8cb621fb
1 changed files with 4 additions and 1 deletions
|
@ -2440,7 +2440,10 @@ static ssize_t sony_nc_gfx_switch_status_show(struct device *dev,
|
||||||
if (pos < 0)
|
if (pos < 0)
|
||||||
return pos;
|
return pos;
|
||||||
|
|
||||||
return snprintf(buffer, PAGE_SIZE, "%s\n", pos ? "speed" : "stamina");
|
return snprintf(buffer, PAGE_SIZE, "%s\n",
|
||||||
|
pos == SPEED ? "speed" :
|
||||||
|
pos == STAMINA ? "stamina" :
|
||||||
|
pos == AUTO ? "auto" : "unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sony_nc_gfx_switch_setup(struct platform_device *pd,
|
static int sony_nc_gfx_switch_setup(struct platform_device *pd,
|
||||||
|
|
Loading…
Reference in a new issue