* [PATCH] lm85: Add VRM10 support for adt7468 chip
@ 2009-03-02 21:05 Darrick J. Wong
0 siblings, 0 replies; only message in thread
From: Darrick J. Wong @ 2009-03-02 21:05 UTC (permalink / raw)
To: Jean Delvare, Andrew Morton; +Cc: linux-kernel, lm-sensors
The adt7468 chip supports VRM10 sensors just like the adt7463; add a missing
check for it.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
---
drivers/hwmon/lm85.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index cf1422e..b251d86 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -410,7 +410,8 @@ static ssize_t show_vid_reg(struct device *dev, struct device_attribute *attr,
struct lm85_data *data = lm85_update_device(dev);
int vid;
- if (data->type == adt7463 && (data->vid & 0x80)) {
+ if ((data->type == adt7463 || data->type == adt7468) &&
+ (data->vid & 0x80)) {
/* 6-pin VID (VRM 10) */
vid = vid_from_reg(data->vid & 0x3f, data->vrm);
} else {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-02 21:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 21:05 [PATCH] lm85: Add VRM10 support for adt7468 chip Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox