projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a174b
)
sony-laptop: Fix reporting of gfx_switch_status
author
Daniel Serpell
<
[email protected]
>
Sat, 10 Aug 2013 04:11:19 +0000
(13:11 +0900)
committer
Matthew Garrett
<
[email protected]
>
Sun, 18 Aug 2013 17:23:09 +0000
(13:23 -0400)
Signed-off-by: Daniel Serpell <
[email protected]
>
Signed-off-by: Mattia Dongili <
[email protected]
>
Signed-off-by: Matthew Garrett <
[email protected]
>
drivers/platform/x86/sony-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/sony-laptop.c
b/drivers/platform/x86/sony-laptop.c
index b1627335ff00f91a2d14ede8cdc9745c7384224d..3a1b6bf326a814d8453a1cdb2e3d699834f7e87a 100644
(file)
--- a/
drivers/platform/x86/sony-laptop.c
+++ b/
drivers/platform/x86/sony-laptop.c
@@
-2440,7
+2440,10
@@
static ssize_t sony_nc_gfx_switch_status_show(struct device *dev,
if (pos < 0)
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,