aboutsummaryrefslogtreecommitdiffstats
path: root/sound/i2c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-04-28 15:13:40 +0200
committerJaroslav Kysela <perex@suse.cz>2006-06-22 21:33:02 +0200
commit57c65c116e1c03c54ac7c4bf38f2b4086d2c1a17 (patch)
tree61e636abe458e85207ea6c4d2e1e052f8015dabc /sound/i2c
parentfa325eb3afc3cdaf7fba6ee3eaf05b243f5614a3 (diff)
downloadkernel_samsung_smdk4412-57c65c116e1c03c54ac7c4bf38f2b4086d2c1a17.tar.gz
kernel_samsung_smdk4412-57c65c116e1c03c54ac7c4bf38f2b4086d2c1a17.tar.bz2
kernel_samsung_smdk4412-57c65c116e1c03c54ac7c4bf38f2b4086d2c1a17.zip
[ALSA] i2c - Move EXPORT_SYMBOL() to adjacent to each function
Move EXPORT_SYMBOL() to adjacent to each exported function/variable. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/i2c')
-rw-r--r--sound/i2c/i2c.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/sound/i2c/i2c.c b/sound/i2c/i2c.c
index edfe76fb007..b60fb189282 100644
--- a/sound/i2c/i2c.c
+++ b/sound/i2c/i2c.c
@@ -106,6 +106,8 @@ int snd_i2c_bus_create(struct snd_card *card, const char *name,
return 0;
}
+EXPORT_SYMBOL(snd_i2c_bus_create);
+
int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name,
unsigned char addr, struct snd_i2c_device **rdevice)
{
@@ -124,6 +126,8 @@ int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name,
return 0;
}
+EXPORT_SYMBOL(snd_i2c_device_create);
+
int snd_i2c_device_free(struct snd_i2c_device *device)
{
if (device->bus)
@@ -134,22 +138,29 @@ int snd_i2c_device_free(struct snd_i2c_device *device)
return 0;
}
+EXPORT_SYMBOL(snd_i2c_device_free);
+
int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count)
{
return device->bus->ops->sendbytes(device, bytes, count);
}
+EXPORT_SYMBOL(snd_i2c_sendbytes);
int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count)
{
return device->bus->ops->readbytes(device, bytes, count);
}
+EXPORT_SYMBOL(snd_i2c_readbytes);
+
int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr)
{
return bus->ops->probeaddr(bus, addr);
}
+EXPORT_SYMBOL(snd_i2c_probeaddr);
+
/*
* bit-operations
*/
@@ -320,12 +331,6 @@ static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, unsigned short addr)
return err;
}
-EXPORT_SYMBOL(snd_i2c_bus_create);
-EXPORT_SYMBOL(snd_i2c_device_create);
-EXPORT_SYMBOL(snd_i2c_device_free);
-EXPORT_SYMBOL(snd_i2c_sendbytes);
-EXPORT_SYMBOL(snd_i2c_readbytes);
-EXPORT_SYMBOL(snd_i2c_probeaddr);
static int __init alsa_i2c_init(void)
{