Skip to content

Commit

Permalink
therm_adt746x: Fix signed/unsigned confusion
Browse files Browse the repository at this point in the history
As suggested, this is used for signed rather than unsigned

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
RoelKluin authored and ozbenh committed Feb 11, 2009
1 parent c3bd517 commit 2e74778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/macintosh/therm_adt746x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_strtoul(buf, NULL, 10); \
int val; \
val = simple_strtol(buf, NULL, 10); \
if (val < 0 || val > 255) \
return -EINVAL; \
printk(KERN_INFO "Setting specified fan speed to %d\n", val); \
Expand Down

0 comments on commit 2e74778

Please sign in to comment.