linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH next-20080822] Fix compile warning with linux/ucb1400.h
@ 2008-08-22 14:26 Takashi Iwai
  0 siblings, 0 replies; only message in thread
From: Takashi Iwai @ 2008-08-22 14:26 UTC (permalink / raw)
  To: Russell King; +Cc: Marek Vasut, linux-next

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

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

Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
diff --git a/include/linux/ucb1400.h b/include/linux/ucb1400.h
index 970473b..2c0f83b 100644
--- a/include/linux/ucb1400.h
+++ b/include/linux/ucb1400.h
@@ -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;
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-22 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-22 14:26 [PATCH next-20080822] Fix compile warning with linux/ucb1400.h Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).