diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:16:30 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:24:04 +0300 |
commit | 0326564d725f441617139ea5e862bf82a527dd08 (patch) | |
tree | 7def694982aa6b7d1b25025b965f3ce9b5dc6d54 /sound/pcmcia/pdaudiocf | |
parent | 65341589599a17465c25ae760e9b317b3596eb8c (diff) | |
download | linux-0326564d725f441617139ea5e862bf82a527dd08.tar.xz |
ALSA: pcmcia: 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-15-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pcmcia/pdaudiocf')
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c index eed2d60178e4..6c33ea91cc05 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c @@ -82,7 +82,7 @@ static int snd_pdacf_probe(struct pcmcia_device *link) int i, err; struct snd_pdacf *pdacf; struct snd_card *card; - static struct snd_device_ops ops = { + static const struct snd_device_ops ops = { .dev_free = snd_pdacf_dev_free, }; |