upeksonly: Pass required user data to write_regs_cb

The user data for write_regs_cb needs to be set to wrdata. This was
simply missing, add the appropriate argument.
This commit is contained in:
Benjamin Berg 2020-06-02 18:01:59 +02:00
parent b4dbbd667a
commit 3f51e6dcb6

View file

@ -627,7 +627,7 @@ write_regs_iterate (struct write_regs_data *wrdata)
1); 1);
transfer->short_is_error = TRUE; transfer->short_is_error = TRUE;
transfer->ssm = wrdata->ssm; transfer->ssm = wrdata->ssm;
fpi_usb_transfer_submit (transfer, CTRL_TIMEOUT, NULL, write_regs_cb, NULL); fpi_usb_transfer_submit (transfer, CTRL_TIMEOUT, NULL, write_regs_cb, wrdata);
transfer->buffer[0] = regwrite->value; transfer->buffer[0] = regwrite->value;
} }