aboutsummaryrefslogtreecommitdiffstats
path: root/sound/mips/sgio2audio.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:28 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:02 +0100
commit35a76585c6386115c065ebdda906f9a65a1b75ce (patch)
tree75da49e700c8d2960d03e266d376c555f3f3b134 /sound/mips/sgio2audio.c
parentALSA: aoa: Constify snd_device_ops definitions (diff)
downloadlinux-dev-35a76585c6386115c065ebdda906f9a65a1b75ce.tar.xz
linux-dev-35a76585c6386115c065ebdda906f9a65a1b75ce.zip
ALSA: mips: Constify snd_device_ops definitions
Now we may declare const for snd_device_ops definitions, so let's do it for optimization. There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-13-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/mips/sgio2audio.c')
-rw-r--r--sound/mips/sgio2audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c
index f10a08a8777f..9f60a5037f8b 100644
--- a/sound/mips/sgio2audio.c
+++ b/sound/mips/sgio2audio.c
@@ -787,7 +787,7 @@ static int snd_sgio2audio_dev_free(struct snd_device *device)
return snd_sgio2audio_free(chip);
}
-static struct snd_device_ops ops = {
+static const struct snd_device_ops ops = {
.dev_free = snd_sgio2audio_dev_free,
};