diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-17 14:45:51 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 12:44:09 +0200 |
commit | b6c0b7156167b8a0f82576adaaa9d7287296bbfc (patch) | |
tree | 706deefbe911ae420ced157e7ec10885be0c6faa /sound/drivers/aloop.c | |
parent | 85ab373843a642a4b4e9228095e6233521e55494 (diff) | |
download | blackbird-obmc-linux-b6c0b7156167b8a0f82576adaaa9d7287296bbfc.tar.gz blackbird-obmc-linux-b6c0b7156167b8a0f82576adaaa9d7287296bbfc.zip |
ALSA: drivers: make snd_pcm_hardware const
Make these const as they are only used in a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/aloop.c')
-rw-r--r-- | sound/drivers/aloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 54f348a4fb78..6e02ee03f1b6 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -561,7 +561,7 @@ static snd_pcm_uframes_t loopback_pointer(struct snd_pcm_substream *substream) return bytes_to_frames(runtime, pos); } -static struct snd_pcm_hardware loopback_pcm_hardware = +static const struct snd_pcm_hardware loopback_pcm_hardware = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | |