]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs4265: Fix part number ID error message
authorFabio Estevam <festevam@denx.de>
Wed, 22 Dec 2021 14:19:19 +0000 (11:19 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 29 Dec 2021 12:45:44 +0000 (12:45 +0000)
commitdd411aadbe69f68d8a4cb8b1d0ff011733a63a55
treeeab2130970abfa3df639fb60ff2a1a85461452de
parent29aa2dab6aba15c7c77359388301c4a63d711e7f
ASoC: cs4265: Fix part number ID error message

The Chip ID - Register 01h contains the following description
as per the CS4265 datasheet:

"Bits 7 through 4 are the part number ID, which is 1101b (0Dh)"

The current error message is incorrect as it prints CS4265_CHIP_ID,
which is the register number, instead of printing the expected
part number ID value.

To make it clearer, also do a shift by 4, so that the error message
would become:

[    4.218083] cs4265 1-004f: CS4265 Part Number ID: 0x0 Expected: 0xd

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211222141920.1482451-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4265.c