[PATCH] staging: iio: adc7192: fix sparse warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the following sparse warning:

  CHECK   drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/adc/ad7192.c:219:58: warning: incorrect type in
argument 4 (different signedness)
drivers/staging/iio/adc/ad7192.c:219:58:    expected unsigned int *val
drivers/staging/iio/adc/ad7192.c:219:58:    got int *<noident>

Signed-off-by: Teodora Baluta <teodora.baluta@xxxxxxxxx>
---
 drivers/staging/iio/adc/ad7192.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c
index 83bb44b..50c0f73 100644
--- a/drivers/staging/iio/adc/ad7192.c
+++ b/drivers/staging/iio/adc/ad7192.c
@@ -205,7 +205,8 @@ static int ad7192_setup(struct ad7192_state *st,
 {
 	struct iio_dev *indio_dev = spi_get_drvdata(st->sd.spi);
 	unsigned long long scale_uv;
-	int i, ret, id;
+	int i, ret;
+	unsigned int id;
 	u8 ones[6];
 
 	/* reset the serial interface */
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux