summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2022-01-26 00:46:02 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-22 09:41:11 +0100
commit524e1eff9a35ae421e2b5c6df85e747311088446 (patch)
treeb21a4ae891c700a403e69d76687855152b45081c /drivers/media/usb
parentmedia: saa7115: make static read-only array lcr2vbi const (diff)
downloadlinux-524e1eff9a35ae421e2b5c6df85e747311088446.tar.xz
linux-524e1eff9a35ae421e2b5c6df85e747311088446.zip
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>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/go7007/snd-go7007.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/go7007/snd-go7007.c b/drivers/media/usb/go7007/snd-go7007.c
index 2ce85ab38db5..9a6bd87fce03 100644
--- a/drivers/media/usb/go7007/snd-go7007.c
+++ b/drivers/media/usb/go7007/snd-go7007.c
@@ -191,7 +191,7 @@ static int go7007_snd_free(struct snd_device *device)
return 0;
}
-static struct snd_device_ops go7007_snd_device_ops = {
+static const struct snd_device_ops go7007_snd_device_ops = {
.dev_free = go7007_snd_free,
};