diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:16:40 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:24:11 +0300 |
commit | 74d2bae3434aef8e63d395559b25988275f81885 (patch) | |
tree | ae773e479589fa01fa89da41f8a5a29da75a4967 /sound/arm/aaci.c | |
parent | 33c83aaf29f54f948467240dd9a2a7242126e146 (diff) | |
download | linux-74d2bae3434aef8e63d395559b25988275f81885.tar.xz |
ALSA: arm: 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-25-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/arm/aaci.c')
-rw-r--r-- | sound/arm/aaci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index d1b5dbcd9e87..d663bd7adae6 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c @@ -811,7 +811,7 @@ static const struct ac97_pcm ac97_defs[] = { } }; -static struct snd_ac97_bus_ops aaci_bus_ops = { +static const struct snd_ac97_bus_ops aaci_bus_ops = { .write = aaci_ac97_write, .read = aaci_ac97_read, }; |