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

Commit b5311d7a authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

hwmon: qpnp-adc-voltage: Show ADC code in hex format



Update the raw code shown for VADC while printing the buffer
in hex format instead of decimal format to maintain the
format that is in the register.

Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
Change-Id: I57f39e1d32925a51ca2bc6e848cc897caf565c6c
parent ea8cd32a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1362,7 +1362,7 @@ static ssize_t qpnp_adc_show(struct device *dev,
	}

	return snprintf(buf, QPNP_ADC_HWMON_NAME_LENGTH,
		"Result:%lld Raw:%d\n", result.physical, result.adc_code);
		"Result:%lld Raw:%x\n", result.physical, result.adc_code);
}

static struct sensor_device_attribute qpnp_adc_attr =