projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6442d94
)
staging: iio: Fix format string mismatch in ad7280a.c
author
Masanari Iida
<standby24x7@gmail.com>
Mon, 28 Apr 2014 16:00:00 +0000
(17:00 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Wed, 30 Apr 2014 20:56:12 +0000
(21:56 +0100)
Fix two format string mismatch in
ad7280a
.c
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7280a.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/ad7280a.c
b/drivers/staging/iio/adc/ad7280a.c
index 1ac11f64827c73de9260ebeb78066eef1b28f09f..d215edf66af2356562df4eaa09a29479f2e659fe 100644
(file)
--- a/
drivers/staging/iio/adc/ad7280a.c
+++ b/
drivers/staging/iio/adc/ad7280a.c
@@
-443,7
+443,7
@@
static ssize_t ad7280_show_balance_timer(struct device *dev,
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,
@@
-619,7
+619,7
@@
static ssize_t ad7280_read_channel_config(struct device *dev,
return -EINVAL;
}
- return sprintf(buf, "%
d
\n", val);
+ return sprintf(buf, "%
u
\n", val);
}
static ssize_t ad7280_write_channel_config(struct device *dev,