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

Commit 39afd73a authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

hwmon: qpnp-adc-voltage: Update condition for reading temp through VADC



ADC driver prints error log whenever vadc read fails. Update the
condition such that log gets printed for error case and not for probe
deferal.

Change-Id: Ieff7f82fbe508a8422f666635a489f45f2deb41f
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent a4165c57
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2479,6 +2479,7 @@ static int qpnp_vadc_get_temp(struct thermal_zone_device *thermal,
	rc = qpnp_vadc_read(vadc,
				vadc_therm->vadc_channel, &result);
	if (rc) {
		if (rc != -EPROBE_DEFER)
			pr_err("VADC read error with %d\n", rc);
		return rc;
	}