summaryrefslogtreecommitdiff
path: root/sound/usb/endpoint.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-23 11:53:33 +0300
committerTakashi Iwai <tiwai@suse.de>2020-11-23 17:15:36 +0300
commitcab941b7e5cf054502b01f776db724400ee5c1b6 (patch)
treedc80dec664d8f67b7ce213bd0d7cfb3b7cf42717 /sound/usb/endpoint.c
parentc15871e17fc6efb98176b92b4152019876dbec24 (diff)
downloadlinux-cab941b7e5cf054502b01f776db724400ee5c1b6.tar.xz
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/endpoint.c')
-rw-r--r--sound/usb/endpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index b8f06a75fc2a..49fb934ee432 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -623,7 +623,7 @@ bool snd_usb_endpoint_compatible(struct snd_usb_audio *chip,
*/
struct snd_usb_endpoint *
snd_usb_endpoint_open(struct snd_usb_audio *chip,
- struct audioformat *fp,
+ const struct audioformat *fp,
const struct snd_pcm_hw_params *params,
bool is_sync_ep)
{