Message ID | CAJCfHmVSG3c=E6dMkBgdF9EU0sxP8if2g-=xhkSU5t=vEsRbEw@mail.gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v1] modify adm1266 blackbox access flow | expand |
diff --git a/drivers/hwmon/pmbus/adm1266.c b/drivers/hwmon/pmbus/adm1266.c index ec5f932fc6f0..d79b2208de86 100644 --- a/drivers/hwmon/pmbus/adm1266.c +++ b/drivers/hwmon/pmbus/adm1266.c @@ -352,6 +352,7 @@ static int adm1266_nvmem_read_blackbox(struct adm1266_data *data, u8 *read_buff) char index; u8 buf[5]; int ret; + char latest_index = 0; ret = i2c_smbus_read_block_data(data->client, ADM1266_BLACKBOX_INFO, buf);