X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Flwla1016.c;h=d16a35e71175a2c8f58f18a5bf8d180921d1a442;hb=276d7b18bbe71d061544c2d2989330b38ce86df3;hp=b280b7a2790d26708abe1b8ffa17c976c1380431;hpb=d64b5f43ccaab6d490da05b84fa9b31b7cccfcb7;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/lwla1016.c b/src/hardware/sysclk-lwla/lwla1016.c index b280b7a2..d16a35e7 100644 --- a/src/hardware/sysclk-lwla/lwla1016.c +++ b/src/hardware/sysclk-lwla/lwla1016.c @@ -121,7 +121,7 @@ static void read_response(struct acquisition_state *acq) * alignment is guaranteed. */ out_p = (uint32_t *)&acq->out_packet[acq->out_index * UNIT_SIZE]; - in_p = &acq->xfer_buf_in[acq->in_index]; + in_p = &acq->xfer_buf_in[acq->in_index]; /* * Transfer two samples at a time, taking care to swap the 16-bit * halves of each input word but keeping the samples themselves in @@ -201,7 +201,7 @@ static int test_read_memory(const struct sr_dev_inst *sdi, unsigned char reply[512]; devc = sdi->priv; - usb = sdi->conn; + usb = sdi->conn; command[0] = LWLA_WORD(CMD_READ_MEM32); command[1] = LWLA_WORD_0(start); @@ -317,7 +317,7 @@ static int setup_acquisition(const struct sr_dev_inst *sdi) int ret; devc = sdi->priv; - usb = sdi->conn; + usb = sdi->conn; ret = lwla_write_reg(usb, REG_CHAN_MASK, devc->channel_mask); if (ret != SR_OK) @@ -349,7 +349,7 @@ static int prepare_request(const struct sr_dev_inst *sdi) unsigned int chunk_len, count; devc = sdi->priv; - acq = devc->acquisition; + acq = devc->acquisition; acq->xfer_out->length = 0; acq->reg_seq_pos = 0; @@ -409,7 +409,7 @@ static int handle_response(const struct sr_dev_inst *sdi) int expect_len; devc = sdi->priv; - acq = devc->acquisition; + acq = devc->acquisition; switch (devc->state) { case STATE_STATUS_REQUEST: