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/cs4265.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index fd966bb..f8ad458 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -70,6 +70,7 @@ static bool cs4265_readable_register(struct device *dev, unsigned int reg) static bool cs4265_volatile_register(struct device *dev, unsigned int reg) { switch (reg) { + case CS4265_CHIP_ID: case CS4265_INT_STATUS: return true; default: