Message ID | 1524741374-13523-10-git-send-email-Vijendar.Mukunda@amd.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 839a12c79963d042632df24b7c8d6498285d10b0 |
Headers | show |
On Thu, Apr 26, 2018 at 5:18 AM Vijendar Mukunda <Vijendar.Mukunda@amd.com> wrote: > From: Akshu Agrawal <akshu.agrawal@amd.com> > Marking snd_soc_ops instances const > Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com> > Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> > --- > sound/soc/amd/acp-da7219-max98357a.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c > index fa5ad5b..133139d 100644 > --- a/sound/soc/amd/acp-da7219-max98357a.c > +++ b/sound/soc/amd/acp-da7219-max98357a.c > @@ -171,17 +171,17 @@ static void cz_dmic_shutdown(struct snd_pcm_substream *substream) > da7219_clk_disable(); > } > -static struct snd_soc_ops cz_da7219_cap_ops = { > +static const struct snd_soc_ops cz_da7219_cap_ops = { > .startup = cz_da7219_startup, > .shutdown = cz_da7219_shutdown, > }; > -static struct snd_soc_ops cz_max_play_ops = { > +static const struct snd_soc_ops cz_max_play_ops = { > .startup = cz_max_startup, > .shutdown = cz_max_shutdown, > }; > -static struct snd_soc_ops cz_dmic_cap_ops = { > +static const struct snd_soc_ops cz_dmic_cap_ops = { > .startup = cz_dmic_startup, > .shutdown = cz_dmic_shutdown, > }; > -- > 2.7.4
diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index fa5ad5b..133139d 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -171,17 +171,17 @@ static void cz_dmic_shutdown(struct snd_pcm_substream *substream) da7219_clk_disable(); } -static struct snd_soc_ops cz_da7219_cap_ops = { +static const struct snd_soc_ops cz_da7219_cap_ops = { .startup = cz_da7219_startup, .shutdown = cz_da7219_shutdown, }; -static struct snd_soc_ops cz_max_play_ops = { +static const struct snd_soc_ops cz_max_play_ops = { .startup = cz_max_startup, .shutdown = cz_max_shutdown, }; -static struct snd_soc_ops cz_dmic_cap_ops = { +static const struct snd_soc_ops cz_dmic_cap_ops = { .startup = cz_dmic_startup, .shutdown = cz_dmic_shutdown, };