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:
024dc07
)
ASoC: Squash error codes from regmap down to -1 on read
author
Mark Brown
<
[email protected]
>
Sun, 9 Oct 2011 13:06:13 +0000
(14:06 +0100)
committer
Mark Brown
<
[email protected]
>
Sun, 9 Oct 2011 13:35:59 +0000
(14:35 +0100)
The ASoC code always uses -1 as the error code due to reporting errors in
band with the value. Ensure we don't confuse anything by making sure we
don't pass actual error codes back into the rest of the code on read.
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/soc-io.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-io.c
b/sound/soc/soc-io.c
index 66fcccd79efe9a2cbc8aa591d491f0f15fbc378f..dd89933e2c723c1d4f0b8b1dce46baaefdcf29b3 100644
(file)
--- a/
sound/soc/soc-io.c
+++ b/
sound/soc/soc-io.c
@@
-55,7
+55,7
@@
static unsigned int hw_read(struct snd_soc_codec *codec, unsigned int reg)
if (ret == 0)
return val;
else
- return
ret
;
+ return
-1
;
}
ret = snd_soc_cache_read(codec, reg, &val);