]> git.baikalelectronics.ru Git - kernel.git/commit
media: go7007: Constify static struct snd_device_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 25 Jan 2022 23:46:02 +0000 (00:46 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 22 Feb 2022 08:41:11 +0000 (09:41 +0100)
commit621c2a29abab974a02d14ae4ad2e62443aaad913
treeb21a4ae891c700a403e69d76687855152b45081c
parentfdcc82c7549623ad3368cea4978858b390998698
media: go7007: Constify static struct snd_device_ops

The only usage of go7007_snd_device_ops is to pass its address to
snd_device_new() which takes a pointer to const struct snd_device_ops.
Make it const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/usb/go7007/snd-go7007.c