diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-17 11:15:51 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 12:44:09 +0200 |
commit | b6c0b7156167b8a0f82576adaaa9d7287296bbfc (patch) | |
tree | 706deefbe911ae420ced157e7ec10885be0c6faa /sound/drivers/pcsp/pcsp_lib.c | |
parent | ALSA: atmel: make snd_pcm_hardware const (diff) | |
download | linux-b6c0b7156167b8a0f82576adaaa9d7287296bbfc.tar.xz 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/pcsp/pcsp_lib.c')
-rw-r--r-- | sound/drivers/pcsp/pcsp_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c index 44b3632f6940..2f5a35f38ce1 100644 --- a/sound/drivers/pcsp/pcsp_lib.c +++ b/sound/drivers/pcsp/pcsp_lib.c @@ -285,7 +285,7 @@ static snd_pcm_uframes_t snd_pcsp_playback_pointer(struct snd_pcm_substream return bytes_to_frames(substream->runtime, pos); } -static struct snd_pcm_hardware snd_pcsp_playback = { +static const struct snd_pcm_hardware snd_pcsp_playback = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_HALF_DUPLEX | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID), |