Message ID | 1477302949-28049-4-git-send-email-ckeepax@opensource.wolfsonmicro.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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:
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(+)