diff options
Diffstat (limited to 'sound/i2c/i2c.c')
| -rw-r--r-- | sound/i2c/i2c.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sound/i2c/i2c.c b/sound/i2c/i2c.c index edfe76fb0074..b60fb1892828 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, | |||
| 106 | return 0; | 106 | return 0; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | EXPORT_SYMBOL(snd_i2c_bus_create); | ||
| 110 | |||
| 109 | int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, | 111 | int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, |
| 110 | unsigned char addr, struct snd_i2c_device **rdevice) | 112 | unsigned char addr, struct snd_i2c_device **rdevice) |
| 111 | { | 113 | { |
| @@ -124,6 +126,8 @@ int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, | |||
| 124 | return 0; | 126 | return 0; |
| 125 | } | 127 | } |
| 126 | 128 | ||
| 129 | EXPORT_SYMBOL(snd_i2c_device_create); | ||
| 130 | |||
| 127 | int snd_i2c_device_free(struct snd_i2c_device *device) | 131 | int snd_i2c_device_free(struct snd_i2c_device *device) |
| 128 | { | 132 | { |
| 129 | if (device->bus) | 133 | if (device->bus) |
| @@ -134,22 +138,29 @@ int snd_i2c_device_free(struct snd_i2c_device *device) | |||
| 134 | return 0; | 138 | return 0; |
| 135 | } | 139 | } |
| 136 | 140 | ||
| 141 | EXPORT_SYMBOL(snd_i2c_device_free); | ||
| 142 | |||
| 137 | int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) | 143 | int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) |
| 138 | { | 144 | { |
| 139 | return device->bus->ops->sendbytes(device, bytes, count); | 145 | return device->bus->ops->sendbytes(device, bytes, count); |
| 140 | } | 146 | } |
| 141 | 147 | ||
| 148 | EXPORT_SYMBOL(snd_i2c_sendbytes); | ||
| 142 | 149 | ||
| 143 | int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) | 150 | int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) |
| 144 | { | 151 | { |
| 145 | return device->bus->ops->readbytes(device, bytes, count); | 152 | return device->bus->ops->readbytes(device, bytes, count); |
| 146 | } | 153 | } |
| 147 | 154 | ||
| 155 | EXPORT_SYMBOL(snd_i2c_readbytes); | ||
| 156 | |||
| 148 | int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) | 157 | int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) |
| 149 | { | 158 | { |
| 150 | return bus->ops->probeaddr(bus, addr); | 159 | return bus->ops->probeaddr(bus, addr); |
| 151 | } | 160 | } |
| 152 | 161 | ||
| 162 | EXPORT_SYMBOL(snd_i2c_probeaddr); | ||
| 163 | |||
| 153 | /* | 164 | /* |
| 154 | * bit-operations | 165 | * bit-operations |
| 155 | */ | 166 | */ |
| @@ -320,12 +331,6 @@ static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) | |||
| 320 | return err; | 331 | return err; |
| 321 | } | 332 | } |
| 322 | 333 | ||
| 323 | EXPORT_SYMBOL(snd_i2c_bus_create); | ||
| 324 | EXPORT_SYMBOL(snd_i2c_device_create); | ||
| 325 | EXPORT_SYMBOL(snd_i2c_device_free); | ||
| 326 | EXPORT_SYMBOL(snd_i2c_sendbytes); | ||
| 327 | EXPORT_SYMBOL(snd_i2c_readbytes); | ||
| 328 | EXPORT_SYMBOL(snd_i2c_probeaddr); | ||
| 329 | 334 | ||
| 330 | static int __init alsa_i2c_init(void) | 335 | static int __init alsa_i2c_init(void) |
| 331 | { | 336 | { |
