]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/protocol.c
kingst-la2016: rephrase FPGA bitstream content zero padding
authorGerhard Sittig <redacted>
Sat, 22 Jan 2022 09:04:14 +0000 (10:04 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commitb0d0131eff8bacbf69aa0da818efaa4439f19a64
tree9cc0ba0f317f940ba3678dff58bd08ab6ff831d3
parentd6f89d4b694ed1f3621608470b4b12479a94813e
kingst-la2016: rephrase FPGA bitstream content zero padding

The upload_fpga_bitstream() routine open codes a magic length for the
padded file content, which is hard to relate to a firmware file size,
and impossible to spot during maintenance. Declare an assumed chunk size
instead and let the resource file handling code path determine the needed
length of zero padding. Drop an unneeded device context member variable.
src/hardware/kingst-la2016/protocol.c
src/hardware/kingst-la2016/protocol.h