summaryrefslogtreecommitdiff
path: root/sound/mips/hal2.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/hal2.c
parente6f2a617ac53bc0753b885ffb94379ff48b2e2df (diff)
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/hal2.c')
-rw-r--r--sound/mips/hal2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c
index db44d9d691db..ec84bc4c3a6e 100644
--- a/sound/mips/hal2.c
+++ b/sound/mips/hal2.c
@@ -732,7 +732,7 @@ static int hal2_dev_free(struct snd_device *device)
return 0;
}
-static struct snd_device_ops hal2_ops = {
+static const struct snd_device_ops hal2_ops = {
.dev_free = hal2_dev_free,
};