projects
/
linux-libre-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cis: Fix comment line wrapping
[linux-libre-firmware.git]
/
carl9170fw
/
config
/
expr.c
diff --git
a/carl9170fw/config/expr.c
b/carl9170fw/config/expr.c
index cbf4996dd9c1045ecc7ffa66a9ec79edd99b1038..8cee597d33a594d3d7380390aa2b697218034578 100644
(file)
--- a/
carl9170fw/config/expr.c
+++ b/
carl9170fw/config/expr.c
@@
-893,7
+893,10
@@
static enum string_value_kind expr_parse_string(const char *str,
switch (type) {
case S_BOOLEAN:
case S_TRISTATE:
- return k_string;
+ val->s = !strcmp(str, "n") ? 0 :
+ !strcmp(str, "m") ? 1 :
+ !strcmp(str, "y") ? 2 : -1;
+ return k_signed;
case S_INT:
val->s = strtoll(str, &tail, 10);
kind = k_signed;