Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71b9b173 authored by Rashika Kheria's avatar Rashika Kheria Committed by Takashi Iwai
Browse files

sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c



Move prototype declaration of function to header file oss/pas2.h
from oss/pas2_card.c because it is used by more than one file.

This eliminates the following warnings in oss/pas2_mixer.c:
sound/oss/pas2_mixer.c:62:1: warning: no previous prototype for ‘mix_write’ [-Wmissing-prototypes]

Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f9367f3f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -15,3 +15,6 @@ int pas_init_mixer(void);
/*	From pas_midi.c */
void pas_midi_init(void);
void pas_midi_interrupt(void);

/*	From pas2_mixer.c*/
void mix_write(unsigned char data, int ioaddr);
+0 −2
Original line number Diff line number Diff line
@@ -74,8 +74,6 @@ static char *pas_model_names[] = {
 * to support other than the default base address
 */

extern void     mix_write(unsigned char data, int ioaddr);

unsigned char pas_read(int ioaddr)
{
	return inb(ioaddr + pas_translate_code);