Skip to content

Commit

Permalink
ASoC: dapm: Allow DAPM registers to be 31 bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Apr 4, 2012
1 parent 67d4509 commit 41b5b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sound/soc-dapm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 41b5b3b

Please sign in to comment.