diff mbox

[4/6] ASoC: cs4265: Mark chip ID register as volatile

Message ID 1477302949-28049-4-git-send-email-ckeepax@opensource.wolfsonmicro.com (mailing list archive)
State New, archived
Headers show

Commit Message

Charles Keepax Oct. 24, 2016, 9:55 a.m. UTC
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 mbox

Patch

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: