diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-12-18 16:40:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 07:16:26 +0100 |
commit | a7be58a126d4cd9f0588df23f58796ed996c1835 (patch) | |
tree | 26d0556bee4b8c241702fb9b49ea1936fc70ee4d /drivers/hwmon/it87.c | |
parent | [PATCH] hwmon: add VRM/VID support for some VIA CPUs (diff) | |
download | linux-a7be58a126d4cd9f0588df23f58796ed996c1835.tar.xz linux-a7be58a126d4cd9f0588df23f58796ed996c1835.zip |
[PATCH] hwmon: it87 use u8 for vrm
VRM values fit in u8 by design now.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/hwmon/it87.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 29b74a880eae..0da7c9c508c3 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -213,7 +213,7 @@ struct it87_data { u8 sensor; /* Register value */ u8 fan_div[3]; /* Register encoding, shifted right */ u8 vid; /* Register encoding, combined */ - int vrm; + u8 vrm; u32 alarms; /* Register encoding, combined */ u8 fan_main_ctrl; /* Register value */ u8 manual_pwm_ctl[3]; /* manual PWM value set by user */ @@ -669,7 +669,7 @@ static ssize_t show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) { struct it87_data *data = it87_update_device(dev); - return sprintf(buf, "%ld\n", (long) data->vrm); + return sprintf(buf, "%u\n", data->vrm); } static ssize_t store_vrm_reg(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |