Commit fd8122d1 authored by Masanari Iida's avatar Masanari Iida Committed by Jonathan Cameron

staging: iio: Fix format string mismatch in ad7280a.c

Fix two format string mismatch in ad7280a.c
Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 6442d94b
...@@ -443,7 +443,7 @@ static ssize_t ad7280_show_balance_timer(struct device *dev, ...@@ -443,7 +443,7 @@ static ssize_t ad7280_show_balance_timer(struct device *dev,
msecs = (ret >> 3) * 71500; msecs = (ret >> 3) * 71500;
return sprintf(buf, "%d\n", msecs); return sprintf(buf, "%u\n", msecs);
} }
static ssize_t ad7280_store_balance_timer(struct device *dev, static ssize_t ad7280_store_balance_timer(struct device *dev,
...@@ -619,7 +619,7 @@ static ssize_t ad7280_read_channel_config(struct device *dev, ...@@ -619,7 +619,7 @@ static ssize_t ad7280_read_channel_config(struct device *dev,
return -EINVAL; return -EINVAL;
} }
return sprintf(buf, "%d\n", val); return sprintf(buf, "%u\n", val);
} }
static ssize_t ad7280_write_channel_config(struct device *dev, static ssize_t ad7280_write_channel_config(struct device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment