Commit a8670f05 authored by Stuart Henderson's avatar Stuart Henderson Committed by DidntRead
Browse files

switch: arizona: Correct some misleading comments/strings



Coefficient 1 of arizona_hpdet_calibration_data is stored as
C1*1000000, not C1*10000.
Fix up a dev_err string incorrectly claiming to have failed to
read offset instead of gradient.

Change-Id: Ifd251c498f6269c99c9d9076c3ac6dc79bdeee5e
Signed-off-by: default avatarStuart Henderson <stuart.henderson@cirrus.com>
parent bedf5b63
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ struct arizona_hpdet_calibration_data {
	int	min;
	int	max;
	s64	C0;		/* value * 1000000 */
	s64	C1;		/* value * 10000 */
	s64	C1;		/* value * 1000000 */
	s64	C2;		/* not multiplied */
	s64	C3;		/* value * 1000000 */
	s64	C4_x_C3;	/* value * 1000000 */
@@ -2948,7 +2948,7 @@ static int arizona_hpdet_clearwater_read_calibration(struct arizona_extcon_info
			  otp_hpdet_calib_2,
			  &gradient);
	if (ret != 0) {
		dev_err(arizona->dev, "Failed to read HP CALIB OFFSET value: %d\n",
		dev_err(arizona->dev, "Failed to read HP CALIB GRADIENT value: %d\n",
			ret);
		return ret;
	}