ihwmon: (it87) Fix VID register access for it8718 and it8720
The comments on the register definitions for the VID register indicates
that IT8718 and IT8720 use a different register (IT87_REG_VID) while the
other sensors use IT87_SIO_VID_REG.
But the code that accesses the register uses the names swaped around. So
the VID value of a it8716 device has been found incorrect.
data->sensor = it87_read_value(data, IT87_REG_TEMP_ENABLE);
/* The 8705 does not have VID capability.
- The 8718 and the 8720 don't use IT87_REG_VID for the
+ The 8718 and the 8720 don't use IT87_SIO_VID_REG for the
same purpose. */
if (data->type == it8712 || data->type == it8716) {
- data->vid = it87_read_value(data, IT87_REG_VID);
+ data->vid = it87_read_value(data, IT87_SIO_VID_REG);
/* The older IT8712F revisions had only 5 VID pins,
but we assume it is always safe to read 6 bits. */
data->vid &= 0x3f;
--
1.6.3.3