int err;
u16 chip_type;
const char *board_vendor, *board_name;
+ const struct it87_devices *config;
err = superio_enter();
if (err)
it87_devices[sio_data->type].suffix,
*address, sio_data->revision);
+ config = &it87_devices[sio_data->type];
+
/* in7 (VSB or VCCH5V) is always internal on some chips */
- if (it87_devices[sio_data->type].features & FEAT_IN7_INTERNAL)
+ if (has_in7_internal(config))
sio_data->internal |= (1 << 1);
/* in8 (Vbat) is always internal */
if (sio_data->type != it8603)
sio_data->skip_in |= (1 << 9);
- if (!(it87_devices[sio_data->type].features & FEAT_VID))
+ if (!has_vid(config))
sio_data->skip_vid = 1;
/* Read GPIO config and VID value from LDN 7 (GPIO) */