aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/es1968.c
diff options
context:
space:
mode:
authorJesper Juhl <juhl@dif.dk>2005-07-27 14:46:09 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 19:26:20 -0400
commit77933d7276ee8fa0e2947641941a6f7a100a327b (patch)
treee3a42724642410f5257c794a71b34642092eedd5 /sound/pci/es1968.c
parent03e259a9cdbd0583e71468293aaa1ccadbdaeff1 (diff)
[PATCH] clean up inline static vs static inline
`gcc -W' likes to complain if the static keyword is not at the beginning of the declaration. This patch fixes all remaining occurrences of "inline static" up with "static inline" in the entire kernel tree (140 occurrences in 47 files). While making this change I came across a few lines with trailing whitespace that I also fixed up, I have also added or removed a blank line or two here and there, but there are no functional changes in the patch. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound/pci/es1968.c')
-rw-r--r--sound/pci/es1968.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c
index ea889b311390..327a341e276b 100644
--- a/sound/pci/es1968.c
+++ b/sound/pci/es1968.c
@@ -636,7 +636,7 @@ static void __maestro_write(es1968_t *chip, u16 reg, u16 data)
636 chip->maestro_map[reg] = data; 636 chip->maestro_map[reg] = data;
637} 637}
638 638
639inline static void maestro_write(es1968_t *chip, u16 reg, u16 data) 639static inline void maestro_write(es1968_t *chip, u16 reg, u16 data)
640{ 640{
641 unsigned long flags; 641 unsigned long flags;
642 spin_lock_irqsave(&chip->reg_lock, flags); 642 spin_lock_irqsave(&chip->reg_lock, flags);
@@ -654,7 +654,7 @@ static u16 __maestro_read(es1968_t *chip, u16 reg)
654 return chip->maestro_map[reg]; 654 return chip->maestro_map[reg];
655} 655}
656 656
657inline static u16 maestro_read(es1968_t *chip, u16 reg) 657static inline u16 maestro_read(es1968_t *chip, u16 reg)
658{ 658{
659 unsigned long flags; 659 unsigned long flags;
660 u16 result; 660 u16 result;
@@ -755,7 +755,7 @@ static void __apu_set_register(es1968_t *chip, u16 channel, u8 reg, u16 data)
755 apu_data_set(chip, data); 755 apu_data_set(chip, data);
756} 756}
757 757
758inline static void apu_set_register(es1968_t *chip, u16 channel, u8 reg, u16 data) 758static inline void apu_set_register(es1968_t *chip, u16 channel, u8 reg, u16 data)
759{ 759{
760 unsigned long flags; 760 unsigned long flags;
761 spin_lock_irqsave(&chip->reg_lock, flags); 761 spin_lock_irqsave(&chip->reg_lock, flags);
@@ -771,7 +771,7 @@ static u16 __apu_get_register(es1968_t *chip, u16 channel, u8 reg)
771 return __maestro_read(chip, IDR0_DATA_PORT); 771 return __maestro_read(chip, IDR0_DATA_PORT);
772} 772}
773 773
774inline static u16 apu_get_register(es1968_t *chip, u16 channel, u8 reg) 774static inline u16 apu_get_register(es1968_t *chip, u16 channel, u8 reg)
775{ 775{
776 unsigned long flags; 776 unsigned long flags;
777 u16 v; 777 u16 v;
@@ -957,7 +957,7 @@ static u32 snd_es1968_compute_rate(es1968_t *chip, u32 freq)
957} 957}
958 958
959/* get current pointer */ 959/* get current pointer */
960inline static unsigned int 960static inline unsigned int
961snd_es1968_get_dma_ptr(es1968_t *chip, esschan_t *es) 961snd_es1968_get_dma_ptr(es1968_t *chip, esschan_t *es)
962{ 962{
963 unsigned int offset; 963 unsigned int offset;
@@ -978,7 +978,7 @@ static void snd_es1968_apu_set_freq(es1968_t *chip, int apu, int freq)
978} 978}
979 979
980/* spin lock held */ 980/* spin lock held */
981inline static void snd_es1968_trigger_apu(es1968_t *esm, int apu, int mode) 981static inline void snd_es1968_trigger_apu(es1968_t *esm, int apu, int mode)
982{ 982{
983 /* set the APU mode */ 983 /* set the APU mode */
984 __apu_set_register(esm, apu, 0, 984 __apu_set_register(esm, apu, 0,