]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] Remove tea6330t struct definition from public header
authorTakashi Iwai <tiwai@suse.de>
Thu, 17 Nov 2005 09:22:32 +0000 (10:22 +0100)
committerJaroslav Kysela <perex@suse.cz>
Tue, 3 Jan 2006 11:16:39 +0000 (12:16 +0100)
Modules: I2C tea6330t

Remove tea6330t struct definition from public header.
It's anyway unaccessible from outside.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/tea6330t.h
sound/i2c/tea6330t.c

index 3896c0a50907c21a454acedd171ff95fad13715c..1b265bf24ee10bc3188e25b8aff609d6edf70ca2 100644 (file)
  *
  */
 
-#include "control.h"
 #include "i2c.h"               /* generic i2c support */
 
-typedef struct {
-       snd_i2c_device_t *device;
-       snd_i2c_bus_t *bus;
-       int equalizer;
-       int fader;
-       unsigned char regs[8];
-       unsigned char mleft, mright;
-       unsigned char bass, treble;
-       unsigned char max_bass, max_treble;
-} tea6330t_t;
-
-extern int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer);
-extern int snd_tea6330t_update_mixer(snd_card_t * card, snd_i2c_bus_t * bus, int equalizer, int fader);
+int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer);
+int snd_tea6330t_update_mixer(snd_card_t * card, snd_i2c_bus_t * bus, int equalizer, int fader);
 
 #endif /* __SOUND_TEA6330T_H */
index 4fdd1fb57dfe1934f92eb2ac685aa7617dc246d9..7bd4948c2a3b6c16201fb97ed8b0acd92153b400 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <sound/core.h>
+#include <sound/control.h>
 #include <sound/tea6330t.h>
 
 MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>");
@@ -43,6 +44,17 @@ MODULE_LICENSE("GPL");
 #define   TEA6330T_GMU                 0x80    /* mute control, general mute */
 #define   TEA6330T_EQN                 0x40    /* equalizer switchover (0=equalizer-on) */
 
+typedef struct {
+       snd_i2c_device_t *device;
+       snd_i2c_bus_t *bus;
+       int equalizer;
+       int fader;
+       unsigned char regs[8];
+       unsigned char mleft, mright;
+       unsigned char bass, treble;
+       unsigned char max_bass, max_treble;
+} tea6330t_t;
+
 int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer)
 {
        int res;