diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:16:20 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:23:51 +0100 |
commit | f15ee210cdb87f82147df237d2fcfc4527523d62 (patch) | |
tree | 46f6e2ee3d4d26b2500050d24ec8d503173ea89d /sound/core/control.c | |
parent | ALSA: core: Treat snd_device_ops as const (diff) | |
download | linux-f15ee210cdb87f82147df237d2fcfc4527523d62.tar.xz linux-f15ee210cdb87f82147df237d2fcfc4527523d62.zip |
ALSA: core: 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-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/control.c')
-rw-r--r-- | sound/core/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 4728f6828890..63bb2fcf13be 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -1823,7 +1823,7 @@ static int snd_ctl_dev_free(struct snd_device *device) */ int snd_ctl_create(struct snd_card *card) { - static struct snd_device_ops ops = { + static const struct snd_device_ops ops = { .dev_free = snd_ctl_dev_free, .dev_register = snd_ctl_dev_register, .dev_disconnect = snd_ctl_dev_disconnect, |