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

Commit 330ea971 authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

hwmon: qpnp-adc: Update conversion timeout value



Few adc channels fail to complete conversion with the current time out
value. Increase time out such that adc conversion is complete and correct
value is reported.

Change-Id: I11a2b44b4f2eb9ed8589d6432324e7b8ffc4a2dc
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent e677c1ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@
#define QPNP_VADC_CONV_TIME_MIN					1000
#define QPNP_VADC_CONV_TIME_MAX					1100
#define QPNP_ADC_COMPLETION_TIMEOUT				HZ
#define QPNP_VADC_ERR_COUNT					20
#define QPNP_VADC_ERR_COUNT					50
#define QPNP_OP_MODE_SHIFT					3

#define QPNP_VADC_THR_LSB_MASK(val)				(val & 0xff)