ASoC: dapm: Allow DAPM registers to be 31 bit
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 8 Mar 2012 15:15:46 +0000 (15:15 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 4 Apr 2012 11:35:20 +0000 (12:35 +0100)
Supports larger register maps, not using unsigned ints for the full 32
bit as we rely on checking for negative registers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/soc-dapm.h

index a53e231044a407b00a72aa2295e64cf85ab55d01..01e7ad1f3f9dedf2d2e94a84ab8263fcbf7ba6da 100644 (file)
@@ -487,7 +487,7 @@ struct snd_soc_dapm_widget {
        struct regulator *regulator;            /* attached regulator */
 
        /* dapm control */
-       short reg;                                              /* negative reg = no direct dapm */
+       int reg;                                /* negative reg = no direct dapm */
        unsigned char shift;                    /* bits to shift */
        unsigned int saved_value;               /* widget saved value */
        unsigned int value;                             /* widget current value */