summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/hwmon/amc6821.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/hwmon/amc6821.c')
-rw-r--r--kernel/drivers/hwmon/amc6821.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/hwmon/amc6821.c b/kernel/drivers/hwmon/amc6821.c
index 12e851a5a..46b4e35fd 100644
--- a/kernel/drivers/hwmon/amc6821.c
+++ b/kernel/drivers/hwmon/amc6821.c
@@ -188,8 +188,8 @@ static struct amc6821_data *amc6821_update_device(struct device *dev)
!data->valid) {
for (i = 0; i < TEMP_IDX_LEN; i++)
- data->temp[i] = i2c_smbus_read_byte_data(client,
- temp_reg[i]);
+ data->temp[i] = (int8_t)i2c_smbus_read_byte_data(
+ client, temp_reg[i]);
data->stat1 = i2c_smbus_read_byte_data(client,
AMC6821_REG_STAT1);