Mark the chip ID register as volatile, the current code does work as without a default value regmap will read from the hardware the first time, however, this makes it more explicit that this register should be read from the hardware.
Signed-off-by: Charles Keepax ckeepax@opensource.wolfsonmicro.com --- sound/soc/codecs/cs42l52.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index 0d9c4a5..1164990 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -120,6 +120,7 @@ static bool cs42l52_readable_register(struct device *dev, unsigned int reg) static bool cs42l52_volatile_register(struct device *dev, unsigned int reg) { switch (reg) { + case CS42L52_CHIP: case CS42L52_IFACE_CTL2: case CS42L52_CLK_STATUS: case CS42L52_BATT_LEVEL: