Skip to content

Commit c598ccf

Browse files
jason77-wangbroonie
authored andcommitted
ASoC: cs35l41: Add one more variable in the debug log
otp_map[].size is a key variable to compute the value of otp_val and to update the bit_offset, it is helpful to debug if could put it in the debug log. Signed-off-by: Hui Wang <hui.wang@canonical.com> Reviewed-by: Lucas Tanure <tanureal@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220324081839.62009-1-hui.wang@canonical.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c8618d6 commit c598ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: sound/soc/codecs/cs35l41-lib.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ int cs35l41_otp_unpack(struct device *dev, struct regmap *regmap)
822822
word_offset = otp_map_match->word_offset;
823823

824824
for (i = 0; i < otp_map_match->num_elements; i++) {
825-
dev_dbg(dev, "bitoffset= %d, word_offset=%d, bit_sum mod 32=%d\n",
826-
bit_offset, word_offset, bit_sum % 32);
825+
dev_dbg(dev, "bitoffset= %d, word_offset=%d, bit_sum mod 32=%d otp_map[i].size = %d\n",
826+
bit_offset, word_offset, bit_sum % 32, otp_map[i].size);
827827
if (bit_offset + otp_map[i].size - 1 >= 32) {
828828
otp_val = (otp_mem[word_offset] &
829829
GENMASK(31, bit_offset)) >> bit_offset;

0 commit comments

Comments
 (0)