From: Colin Ian King Date: Mon, 25 Jul 2016 22:06:56 +0000 (+0100) Subject: iio: chemical: atlas-ph-sensor: fix typo in val assignment X-Git-Tag: v4.8-rc5~8^2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca64d4bc80a88845f7e1e266dbff798f928bcc06;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-By: Matt Ranostay Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/chemical/atlas-ph-sensor.c b/drivers/iio/chemical/atlas-ph-sensor.c index ae038a5..407f141 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 */