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:
Bhumika Goyal
2017-08-13 08:43:08 -04:00
committed by Mauro Carvalho Chehab
부모 1ab2234eef
커밋 38c4f03acf
5개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제

파일 보기

@@ -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 |