Skip to contentSkip to conversation

Fix compile warning with linux/ucb1400.h

PATCH New Takashi Iwai 1 participant 1 message Aug 22, 2008 Linux-next tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile warning with linux/ucb1400.h

Use inline for a function in linux/ucb1400.h.

include/linux/ucb1400.h:139: warning: 'ucb1400_adc_read' defined but not used

---

include/linux/ucb1400.h +2 -2
index 970473b..2c0f83b 100644
@@ -134,8 +134,8 @@ static inline void ucb1400_adc_enable(struct snd_ac97 *ac97)
 	ucb1400_reg_write(ac97, UCB_ADC_CR, UCB_ADC_ENA);
 }
 
-static unsigned int ucb1400_adc_read(struct snd_ac97 *ac97, u16 adc_channel,
-					int adcsync)
+static inline unsigned int ucb1400_adc_read(struct snd_ac97 *ac97,
+					    u16 adc_channel, int adcsync)
 {
 	unsigned int val;