]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: snd_pcm_new api cleanup
authorTim Blechmann <tim@klingt.org>
Thu, 5 Feb 2009 12:01:54 +0000 (13:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 5 Feb 2009 14:03:27 +0000 (15:03 +0100)
Impact: cleanup

snd_pcm_new takes a char *id argument, although it is not modifying
the string. it can therefore be declared as const char *id.

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm.c

index 40c5a6fa6bcd3635334f0405ee0d53f37c3944c7..ee0e887e49d48cc00015aa8505e2ef10c09c48a8 100644 (file)
@@ -451,7 +451,7 @@ struct snd_pcm_notify {
 
 extern const struct file_operations snd_pcm_f_ops[2];
 
-int snd_pcm_new(struct snd_card *card, char *id, int device,
+int snd_pcm_new(struct snd_card *card, const char *id, int device,
                int playback_count, int capture_count,
                struct snd_pcm **rpcm);
 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
index 192a433a240309bd1ce4e977cfa3c6f34d646a85..583453e2355c94a850bfddb429a1878fc221d08a 100644 (file)
@@ -692,7 +692,7 @@ EXPORT_SYMBOL(snd_pcm_new_stream);
  *
  * Returns zero if successful, or a negative error code on failure.
  */
-int snd_pcm_new(struct snd_card *card, char *id, int device,
+int snd_pcm_new(struct snd_card *card, const char *id, int device,
                int playback_count, int capture_count,
                struct snd_pcm ** rpcm)
 {