diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:16:39 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:24:11 +0100 |
commit | 33c83aaf29f54f948467240dd9a2a7242126e146 (patch) | |
tree | a1c0cbc63476b5b573136149afa5334a246dc773 | |
parent | 19260818a9747768b09c1c1f10b4125b4d00595e (diff) | |
download | lwn-33c83aaf29f54f948467240dd9a2a7242126e146.tar.gz lwn-33c83aaf29f54f948467240dd9a2a7242126e146.zip |
ALSA: ac97: Constify snd_ac97_bus_ops definitions
Now snd_ac97_bus() takes the const ops pointer, so we can define the
snd_ac97_bus_ops locally as const as well for further optimization.
There should be no functional changes by this patch.
Link: https://lore.kernel.org/r/20200103081714.9560-24-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/ac97/snd_ac97_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/ac97/snd_ac97_compat.c b/sound/ac97/snd_ac97_compat.c index 715daf141713..d2479bba75bf 100644 --- a/sound/ac97/snd_ac97_compat.c +++ b/sound/ac97/snd_ac97_compat.c @@ -53,7 +53,7 @@ static unsigned short compat_ac97_read(struct snd_ac97 *ac97, return actrl->ops->read(actrl, ac97->num, reg); } -static struct snd_ac97_bus_ops compat_snd_ac97_bus_ops = { +static const struct snd_ac97_bus_ops compat_snd_ac97_bus_ops = { .reset = compat_ac97_reset, .warm_reset = compat_ac97_warm_reset, .write = compat_ac97_write, |