regulator: qpnp-lcdb: Correct the get_voltage calculation

NCP/LDO output voltage register is of 5 bits [4:0] only. The
current calculation uses [7:0] which causes a incorrect value
to be reported. Fix it.

Change-Id: Idd00f5364e6bac7b086f4ca606c592e57d8bb24a
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
diff --git a/drivers/regulator/qpnp-lcdb-regulator.c b/drivers/regulator/qpnp-lcdb-regulator.c
index 4e8d6f9..8435dfb 100644
--- a/drivers/regulator/qpnp-lcdb-regulator.c
+++ b/drivers/regulator/qpnp-lcdb-regulator.c
@@ -1151,6 +1151,7 @@
 		return rc;
 	}
 
+	val &= SET_OUTPUT_VOLTAGE_MASK;
 	if (val < VOLTAGE_STEP_50MV_OFFSET) {
 		*voltage_mv = VOLTAGE_MIN_STEP_100_MV +
 				(val * VOLTAGE_STEP_100_MV);