Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c91b069 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

mfd: wcd9335-regmap: Mark Vbat registers as volatile



Vbat adc, gain related registers are not updated by the
driver and are read only. Mark these registers as volatile,
to get proper values when the registers are read.

Change-Id: Icef27deb9459a3193110007a78ad1a84283f4965
Signed-off-by: default avatarVenkata Narendra Kumar Gutta <vgutta@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent ec1f4030
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1585,6 +1585,9 @@ static bool wcd9335_is_volatile_register(struct device *dev, unsigned int reg)
	case WCD9335_SIDO_SIDO_TEST_2:
	case WCD9335_SIDO_SIDO_CCL_8:
	case WCD9335_BIAS_VBG_FINE_ADJ:
	case WCD9335_VBADC_ADC_DOUTMSB:
	case WCD9335_VBADC_ADC_DOUTLSB:
	case WCD9335_CDC_VBAT_VBAT_GAIN_MON_VAL:
		return true;
	default:
		return false;