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:
c3bd517
)
therm_adt746x: Fix signed/unsigned confusion
author
roel kluin
<
[email protected]
>
Sun, 18 Jan 2009 02:03:47 +0000
(
02:03
+0000)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Wed, 11 Feb 2009 05:00:07 +0000
(16:00 +1100)
As suggested, this is used for signed rather than unsigned
Signed-off-by: Roel Kluin <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
drivers/macintosh/therm_adt746x.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/therm_adt746x.c
b/drivers/macintosh/therm_adt746x.c
index 82607add69a9bc6b6b9c1ee306c307c6b72c9cf9..c0621d50c8a0ca1281881b68d587f1c8be81ec96 100644
(file)
--- a/
drivers/macintosh/therm_adt746x.c
+++ b/
drivers/macintosh/therm_adt746x.c
@@
-498,8
+498,8
@@
static ssize_t store_##name(struct device *dev, struct device_attribute *attr, c
#define BUILD_STORE_FUNC_INT(name, data) \
static ssize_t store_##name(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) \
{ \
-
u32
val; \
- val = simple_strto
ul(buf, NULL, 10);
\
+
int
val; \
+ val = simple_strto
l(buf, NULL, 10);
\
if (val < 0 || val > 255) \
return -EINVAL; \
printk(KERN_INFO "Setting specified fan speed to %d\n", val); \