Commit 41b5b3bd authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: dapm: Allow DAPM registers to be 31 bit



Supports larger register maps, not using unsigned ints for the full 32
bit as we rely on checking for negative registers.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent 67d45090
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */