[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1469484416-17305-1-git-send-email-colin.king@canonical.com>
Date: Mon, 25 Jul 2016 23:06:56 +0100
From: Colin King <colin.king@...onical.com>
To: Jonathan Cameron <jic23@...nel.org>,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Matt Ranostay <mranostay@...il.com>,
Sanchayan Maity <maitysanchayan@...il.com>,
Gregor Boirie <gregor.boirie@...rot.com>,
linux-iio@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] iio: chemical: atlas-ph-sensor: fix typo in val assignment
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
---
drivers/iio/chemical/atlas-ph-sensor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 */
--
2.8.1
Powered by blists - more mailing lists