mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
lm85: add VRM10 support for adt7468 chip
The adt7468 chip supports VRM10 sensors just like the adt7463; add a missing check for it. Signed-off-by: Darrick J. Wong <[email protected]> Cc: Jean Delvare <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c15ade6578
commit
8ef1f0291a
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue