diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:16:18 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:23:49 +0300 |
commit | 2ead9d087fe2eafecf801dd2ab83bdb66dc08ced (patch) | |
tree | 2abdac41768c4f1395cd9977325386704fd81ae5 /sound/usb/caiaq/audio.c | |
parent | c1c3981fa16688e02f629a4805c9188679b132e9 (diff) | |
download | linux-2ead9d087fe2eafecf801dd2ab83bdb66dc08ced.tar.xz |
ALSA: usb: Constify snd_pcm_hardware definitions
Most of snd_pcm_hardware definitions are just copied to another object
as-is, hence we can define them as const for further optimization.
There should be no functional changes by this patch.
Link: https://lore.kernel.org/r/20200103081714.9560-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/caiaq/audio.c')
-rw-r--r-- | sound/usb/caiaq/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/caiaq/audio.c b/sound/usb/caiaq/audio.c index 72212153cb1f..41993a5c0537 100644 --- a/sound/usb/caiaq/audio.c +++ b/sound/usb/caiaq/audio.c @@ -30,7 +30,7 @@ #define MAKE_CHECKBYTE(cdev,stream,i) \ (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1) -static struct snd_pcm_hardware snd_usb_caiaq_pcm_hardware = { +static const struct snd_pcm_hardware snd_usb_caiaq_pcm_hardware = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER), .formats = SNDRV_PCM_FMTBIT_S24_3BE, |