diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-11-23 09:53:33 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-11-23 15:15:36 +0100 |
commit | cab941b7e5cf054502b01f776db724400ee5c1b6 (patch) | |
tree | dc80dec664d8f67b7ce213bd0d7cfb3b7cf42717 /sound/usb/pcm.h | |
parent | c15871e17fc6efb98176b92b4152019876dbec24 (diff) |
ALSA: usb-audio: Constify audioformat pointer references
The audioformat is referred in many places but most of usages are
read-only. Let's add const prefix in the possible places.
Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-28-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/pcm.h')
-rw-r--r-- | sound/usb/pcm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/pcm.h b/sound/usb/pcm.h index a4f784225abc..06c586467d3f 100644 --- a/sound/usb/pcm.h +++ b/sound/usb/pcm.h @@ -10,7 +10,7 @@ int snd_usb_pcm_suspend(struct snd_usb_stream *as); int snd_usb_pcm_resume(struct snd_usb_stream *as); int snd_usb_init_pitch(struct snd_usb_audio *chip, - struct audioformat *fmt); + const struct audioformat *fmt); void snd_usb_preallocate_buffer(struct snd_usb_substream *subs); int snd_usb_audioformat_set_sync_ep(struct snd_usb_audio *chip, |