Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220491
b: refs/heads/master
c: 54891a3
h: refs/heads/master
i:
  220489: ee333a4
  220487: bf5e3b6
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 28, 2010
1 parent 38044db commit 478ffa6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd127f5ccd7c61eb7ee215120a7809eb67c1ed7f
refs/heads/master: 54891a3c135b30ca0718dbf81f78260795a5b2fe
13 changes: 13 additions & 0 deletions trunk/drivers/hwmon/w83795.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ static const u8 IN_LSB_SHIFT_IDX[][2] = {
#define W83795_REG_DTSC 0x301
#define W83795_REG_DTSE 0x302
#define W83795_REG_DTS(index) (0x26 + (index))
#define W83795_REG_PECI_TBASE(index) (0x320 + (index))

#define DTS_CRIT 0
#define DTS_CRIT_HYST 1
Expand Down Expand Up @@ -1993,6 +1994,18 @@ static int w83795_probe(struct i2c_client *client,
data->has_dts = w83795_read(client, W83795_REG_DTSE);
}

/* Report PECI Tbase values */
if (data->enable_dts == 1) {
for (i = 0; i < 8; i++) {
if (!(data->has_dts & (1 << i)))
continue;
tmp = w83795_read(client, W83795_REG_PECI_TBASE(i));
dev_info(&client->dev,
"PECI agent %d Tbase temperature: %u\n",
i + 1, (unsigned int)tmp & 0x7f);
}
}

/* First update the voltages measured value and limits */
for (i = 0; i < ARRAY_SIZE(data->in); i++) {
if (!(data->has_in & (1 << i)))
Expand Down

0 comments on commit 478ffa6

Please sign in to comment.