projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fffc0ca
)
ASoC: Constify ops and compr_ops fields of snd_soc_dai_link
author
Lars-Peter Clausen
<lars@metafoo.de>
Thu, 10 Jan 2013 16:06:15 +0000
(17:06 +0100)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 13 Jan 2013 22:45:21 +0000
(07:45 +0900)
The core does not modify these fields, so they can be made const. This allows
drivers to declare their op tables as const.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
patch
|
blob
|
blame
|
history
diff --git
a/include/sound/soc.h
b/include/sound/soc.h
index 769e27c774a3de382ec93650766621056dc78820..bedf3dabdbd3f7981f443a109a9ab83a9d79b405 100644
(file)
--- a/
include/sound/soc.h
+++ b/
include/sound/soc.h
@@
-904,8
+904,8
@@
struct snd_soc_dai_link {
struct snd_pcm_hw_params *params);
/* machine stream operations */
- struct snd_soc_ops *ops;
- struct snd_soc_compr_ops *compr_ops;
+
const
struct snd_soc_ops *ops;
+
const
struct snd_soc_compr_ops *compr_ops;
};
struct snd_soc_codec_conf {