X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fsound%2Fsoc.h;fp=include%2Fsound%2Fsoc.h;h=5a049d969c59cd0712940501974e4b23292f0b9c;hb=2cde51fbd0f310c8a2c5f977e665c0ac3945b46d;hp=1cda7d343d16edd43f4f430078d0333b74405bd0;hpb=a010ff628c0953e6c914ecd09678363848617a88;p=~andy%2Flinux diff --git a/include/sound/soc.h b/include/sound/soc.h index 1cda7d343d1..5a049d969c5 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -334,9 +334,7 @@ struct snd_soc_jack_pin; #include #include -#ifdef CONFIG_GPIOLIB struct snd_soc_jack_gpio; -#endif typedef int (*hw_write_t)(void *,const char* ,int); @@ -446,6 +444,17 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios); void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios); +#else +static inline int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, + struct snd_soc_jack_gpio *gpios) +{ + return 0; +} + +static inline void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, + struct snd_soc_jack_gpio *gpios) +{ +} #endif /* codec register bit access */ @@ -580,7 +589,6 @@ struct snd_soc_jack_zone { * to provide more complex checks (eg, reading an * ADC). */ -#ifdef CONFIG_GPIOLIB struct snd_soc_jack_gpio { unsigned int gpio; const char *name; @@ -594,7 +602,6 @@ struct snd_soc_jack_gpio { int (*jack_status_check)(void); }; -#endif struct snd_soc_jack { struct mutex mutex;