media: usb: make snd_pcm_hardware const
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

부모
1ab2234eef
커밋
38c4f03acf
@@ -43,7 +43,7 @@
|
||||
|
||||
#include "usbtv.h"
|
||||
|
||||
static struct snd_pcm_hardware snd_usbtv_digital_hw = {
|
||||
static const struct snd_pcm_hardware snd_usbtv_digital_hw = {
|
||||
.info = SNDRV_PCM_INFO_BATCH |
|
||||
SNDRV_PCM_INFO_MMAP |
|
||||
SNDRV_PCM_INFO_INTERLEAVED |
|
||||
|
Reference in New Issue
Block a user