ASoC: Factor out I2C 8 bit address 16 bit data I/O

As part of this refactoring the type of the CODEC hw_read operation
is changed to match the regular read operation.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown
2009-07-10 23:11:24 +01:00
parent 7084a42b96
commit afa2f1066e
2 changed files with 72 additions and 9 deletions

View File

@@ -373,7 +373,7 @@ struct snd_soc_codec {
size_t, unsigned int);
int (*volatile_register)(unsigned int);
hw_write_t hw_write;
hw_read_t hw_read;
unsigned int (*hw_read)(struct snd_soc_codec *, unsigned int);
void *reg_cache;
short reg_cache_size;
short reg_cache_step;