projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a3a68
)
ASoC: v253_init: eliminate pointer to string
author
Jiri Slaby
<jslaby@suse.cz>
Thu, 22 Jul 2021 11:51:41 +0000
(13:51 +0200)
committer
Mark Brown
<broonie@kernel.org>
Thu, 29 Jul 2021 14:35:50 +0000
(15:35 +0100)
There is no need to have an extra pointer to a string (v253_init).
Convert it to an array.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link:
https://lore.kernel.org/r/20210722115141.516-2-jslaby@suse.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cx20442.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cx20442.c
b/sound/soc/codecs/cx20442.c
index
65c6b92
..
13258f3
100644
(file)
--- a/
sound/soc/codecs/cx20442.c
+++ b/
sound/soc/codecs/cx20442.c
@@
-206,7
+206,7
@@
static int cx20442_write(struct snd_soc_component *component, unsigned int reg,
*/
/* Modem init: echo off, digital speaker off, quiet off, voice mode */
-static const char
*v253_init
= "ate0m0q0+fclass=8\r";
+static const char
v253_init[]
= "ate0m0q0+fclass=8\r";
/* Line discipline .open() */
static int v253_open(struct tty_struct *tty)