Skip to content

Commit d3bd67c

Browse files
tiwaiperexg
authored andcommitted
ALSA: make snd_ctl_elem_read() and snd_ctl_elem_write() static
snd_ctl_elem_read() and snd_ctl_elem_write() are no longer used by any other drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent 149b154 commit d3bd67c

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎include/sound/control.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ int snd_ctl_unregister_ioctl_compat(snd_kctl_ioctl_func_t fcn);
129129
#define snd_ctl_unregister_ioctl_compat(fcn)
130130
#endif
131131

132-
int snd_ctl_elem_read(struct snd_card *card, struct snd_ctl_elem_value *control);
133-
int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control);
134-
135132
static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
136133
{
137134
return id->numid - kctl->id.numid;

‎sound/core/control.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ static int snd_ctl_elem_info_user(struct snd_ctl_file *ctl,
684684
return result;
685685
}
686686

687-
int snd_ctl_elem_read(struct snd_card *card, struct snd_ctl_elem_value *control)
687+
static int snd_ctl_elem_read(struct snd_card *card,
688+
struct snd_ctl_elem_value *control)
688689
{
689690
struct snd_kcontrol *kctl;
690691
struct snd_kcontrol_volatile *vd;
@@ -734,8 +735,8 @@ static int snd_ctl_elem_read_user(struct snd_card *card,
734735
return result;
735736
}
736737

737-
int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file,
738-
struct snd_ctl_elem_value *control)
738+
static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file,
739+
struct snd_ctl_elem_value *control)
739740
{
740741
struct snd_kcontrol *kctl;
741742
struct snd_kcontrol_volatile *vd;

0 commit comments

Comments
 (0)