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

Commit ca64d4bc authored by Colin Ian King's avatar Colin Ian King Committed by Jonathan Cameron
Browse files

iio: chemical: atlas-ph-sensor: fix typo in val assignment



Fix an incorrect assignment due to a typo on a variable name. The
variable val2 should be assigned 100000 and not val.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-By: default avatarMatt Ranostay <mranostay@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent fcf68f3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ static int atlas_read_raw(struct iio_dev *indio_dev,
			break;
		case IIO_ELECTRICALCONDUCTIVITY:
			*val = 1; /* 0.00001 */
			*val = 100000;
			*val2 = 100000;
			break;
		case IIO_CONCENTRATION:
			*val = 0; /* 0.000000001 */