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

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
...@@ -434,7 +434,7 @@ static int atlas_read_raw(struct iio_dev *indio_dev, ...@@ -434,7 +434,7 @@ static int atlas_read_raw(struct iio_dev *indio_dev,
break; break;
case IIO_ELECTRICALCONDUCTIVITY: case IIO_ELECTRICALCONDUCTIVITY:
*val = 1; /* 0.00001 */ *val = 1; /* 0.00001 */
*val = 100000; *val2 = 100000;
break; break;
case IIO_CONCENTRATION: case IIO_CONCENTRATION:
*val = 0; /* 0.000000001 */ *val = 0; /* 0.000000001 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment