Skip to content

Commit

Permalink
ALSA: snd_pcm_new api cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tim Blechmann authored and Takashi Iwai committed Feb 5, 2009
1 parent cade9f8 commit e616165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/sound/pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sound/core/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e616165

Please sign in to comment.