projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb0ad2
)
ALSA: usb: Constify snd_device_ops definitions
author
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jan 2020 08:16:26 +0000
(09:16 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jan 2020 08:24:01 +0000
(09:24 +0100)
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-11-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c
patch
|
blob
|
history
diff --git
a/sound/usb/mixer.c
b/sound/usb/mixer.c
index 6cd4ff09c5ee60566aae77191fbd73960aa2a79a..f60e0869c096bb2aa2b0b876dbf84dd63c8c776d 100644
(file)
--- a/
sound/usb/mixer.c
+++ b/
sound/usb/mixer.c
@@
-3407,7
+3407,7
@@
static int create_keep_iface_ctl(struct usb_mixer_interface *mixer)
int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
int ignore_error)
{
- static struct snd_device_ops dev_ops = {
+ static
const
struct snd_device_ops dev_ops = {
.dev_free = snd_usb_mixer_dev_free
};
struct usb_mixer_interface *mixer;