Commit 9b9def51 authored by Alexander Martinz's avatar Alexander Martinz Committed by Mark Brown

ASoC: codecs: tfa989x: fix register access comments

Fix comments regarding register access based on review feedback[1].

[1]: https://lore.kernel.org/all/YppQ7BiqlBDMNsuc@gerhold.net/Signed-off-by: default avatarAlexander Martinz <amartinz@shiftphones.com>
Link: https://lore.kernel.org/r/20220920115014.952062-1-amartinz@shiftphones.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9f27530a
...@@ -193,7 +193,7 @@ static int tfa9890_init(struct regmap *regmap) ...@@ -193,7 +193,7 @@ static int tfa9890_init(struct regmap *regmap)
{ {
int ret; int ret;
/* unhide keys to allow updating them */ /* temporarily allow access to hidden registers */
ret = regmap_write(regmap, TFA989X_HIDE_UNHIDE_KEY, 0x5a6b); ret = regmap_write(regmap, TFA989X_HIDE_UNHIDE_KEY, 0x5a6b);
if (ret) if (ret)
return ret; return ret;
...@@ -203,7 +203,7 @@ static int tfa9890_init(struct regmap *regmap) ...@@ -203,7 +203,7 @@ static int tfa9890_init(struct regmap *regmap)
if (ret) if (ret)
return ret; return ret;
/* hide keys again */ /* hide registers again */
ret = regmap_write(regmap, TFA989X_HIDE_UNHIDE_KEY, 0x0000); ret = regmap_write(regmap, TFA989X_HIDE_UNHIDE_KEY, 0x0000);
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