Commit 806a8afe authored by Dan Murphy's avatar Dan Murphy Committed by Mark Brown

ASoC: tlv320adcx140: Fix GPO register start address

The header was updated to align with the data sheet to start the GPO_CFG
at GPO_CFG0.  The code was not updated to the change and therefore the
GPO_CFG0 register was not written to.

Fixes: 6617cff6 ("ASoC: tlv320adcx140: Add GPO configuration and drive output config")
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200730142419.28205-1-dmurphy@ti.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6617cff6
...@@ -790,7 +790,7 @@ static int adcx140_configure_gpo(struct adcx140_priv *adcx140) ...@@ -790,7 +790,7 @@ static int adcx140_configure_gpo(struct adcx140_priv *adcx140)
gpo_output_val = gpo_outputs[0] << ADCX140_GPO_SHIFT | gpo_output_val = gpo_outputs[0] << ADCX140_GPO_SHIFT |
gpo_outputs[1]; gpo_outputs[1];
ret = regmap_write(adcx140->regmap, ADCX140_GPO_CFG1 + i, ret = regmap_write(adcx140->regmap, ADCX140_GPO_CFG0 + i,
gpo_output_val); gpo_output_val);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment