]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codec: tlv320aic32x4: Fix regmap range config
authorMarkus Pargmann <mpa@pengutronix.de>
Sat, 11 Jan 2014 13:48:30 +0000 (14:48 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 13 Jan 2014 12:34:51 +0000 (12:34 +0000)
commitdb6b49cf81cf84e0a85cfe4b9ed71068cf1356ed
tree7955e71f4f933e96f06743ed71fa4292fc94d7be
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
ASoC: codec: tlv320aic32x4: Fix regmap range config

This codec driver fails to probe because it has a higher regmap
range_max value than max_register. This patch sets the range_max to the
max_register value as described in the for struct regmap_range_cfg:
"@range_max: Address of the highest register in virtual range."

Fixes: e889aa0d7f01 (ASoC: tlv320aic32x4: Convert to direct regmap API usage)
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org (v3.13 if the fix misses -final)
sound/soc/codecs/tlv320aic32x4.c