ALSA: oxfw: use const qualifier for immutable argument
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 18 Feb 2024 07:41:25 +0000 (16:41 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Feb 2024 08:24:35 +0000 (09:24 +0100)
In the helper function, the first argument is immutable, thus it is
preferable to use const qualifier.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20240218074128.95210-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw-stream.c
sound/firewire/oxfw/oxfw.h

index f4a702def3979437faf2684a77351bb2a07c7600..6d8722f9d3a58b25a80fba4c4cf24ff96ae84c44 100644 (file)
@@ -515,7 +515,7 @@ end:
  * in AV/C Stream Format Information Specification 1.1 (Apr 2005, 1394TA)
  * Also 'Clause 12 AM824 sequence adaption layers' in IEC 61883-6:2005
  */
-int snd_oxfw_stream_parse_format(u8 *format,
+int snd_oxfw_stream_parse_format(const u8 *format,
                                 struct snd_oxfw_stream_formation *formation)
 {
        unsigned int i, e, channels, type;
index d728e451a25c6b98818ec31634d4896d58fbcb23..39316aeafeaa46fceb7963c73c8f1dc1efbafbd2 100644 (file)
@@ -136,7 +136,7 @@ struct snd_oxfw_stream_formation {
        unsigned int pcm;
        unsigned int midi;
 };
-int snd_oxfw_stream_parse_format(u8 *format,
+int snd_oxfw_stream_parse_format(const u8 *format,
                                 struct snd_oxfw_stream_formation *formation);
 int snd_oxfw_stream_get_current_formation(struct snd_oxfw *oxfw,
                                enum avc_general_plug_dir dir,