summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-07-25 23:06:56 +0100
committerJonathan Cameron <jic23@kernel.org>2016-08-21 16:23:27 +0100
commitca64d4bc80a88845f7e1e266dbff798f928bcc06 (patch)
tree0f9f475115c1f819d7e0dddab96d768a3ef5fe23 /drivers/iio
parentfcf68f3c0bb2a541aa47a2a38b8939edf84fd529 (diff)
downloadlinux-ca64d4bc80a88845f7e1e266dbff798f928bcc06.tar.bz2
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: Colin Ian King <colin.king@canonical.com> Reviewed-By: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/chemical/atlas-ph-sensor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/atlas-ph-sensor.c b/drivers/iio/chemical/atlas-ph-sensor.c
index ae038a59d256..407f141a1eee 100644
--- a/drivers/iio/chemical/atlas-ph-sensor.c
+++ b/drivers/iio/chemical/atlas-ph-sensor.c
@@ -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 */