diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:16:27 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:24:01 +0300 |
commit | e6f2a617ac53bc0753b885ffb94379ff48b2e2df (patch) | |
tree | b109afc901ed6257b49a0fe94bf03d3f47a88c17 /sound/aoa/codecs/onyx.c | |
parent | c0a142e21bbaeddc9e0ed00045e0ac6c841f1769 (diff) | |
download | linux-e6f2a617ac53bc0753b885ffb94379ff48b2e2df.tar.xz |
ALSA: aoa: 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-12-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/aoa/codecs/onyx.c')
-rw-r--r-- | sound/aoa/codecs/onyx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c index 9827bee109c1..83ab3e58a0d3 100644 --- a/sound/aoa/codecs/onyx.c +++ b/sound/aoa/codecs/onyx.c @@ -97,7 +97,7 @@ static int onyx_dev_register(struct snd_device *dev) return 0; } -static struct snd_device_ops ops = { +static const struct snd_device_ops ops = { .dev_register = onyx_dev_register, }; |