iio: chemical: atlas-ph-sensor: fix typo in val assignment
authorColin Ian King <colin.king@canonical.com>
Mon, 25 Jul 2016 22:06:56 +0000 (23:06 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Aug 2016 15:23:27 +0000 (16:23 +0100)
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: Colin Ian King <colin.king@canonical.com>
Reviewed-By: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/chemical/atlas-ph-sensor.c

index ae038a5..407f141 100644 (file)
@@ -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 */