]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: tas5086: fix TAS5086_CLOCK_CONTROL register size
authorDaniel Mack <zonque@gmail.com>
Thu, 27 Jun 2013 19:59:10 +0000 (21:59 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 28 Jun 2013 11:15:30 +0000 (12:15 +0100)
The TAS5086_CLOCK_CONTROL also has a size of 1 byte.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tas5086.c

index 72067f79633e51beec58bdceaf4e253c959c4789..8bbdf25530cae1080e253f559f657a714d2ece0a 100644 (file)
@@ -130,7 +130,7 @@ static const struct reg_default tas5086_reg_defaults[] = {
 static int tas5086_register_size(struct device *dev, unsigned int reg)
 {
        switch (reg) {
-       case TAS5086_DEV_ID ... TAS5086_BKNDERR:
+       case TAS5086_CLOCK_CONTROL ... TAS5086_BKNDERR:
                return 1;
        case TAS5086_INPUT_MUX:
        case TAS5086_PWM_OUTPUT_MUX: