]> sigrok.org Git - libsigrok.git/commit
asix-sigma: eliminate magic numbers in firmware file references
authorGerhard Sittig <redacted>
Tue, 12 May 2020 05:20:17 +0000 (07:20 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 05:50:18 +0000 (07:50 +0200)
commit80e717b3cfac82d63c98614fe6179fb0e4fdaf8d
tree6c39ef7d782e5461b601e2e5ce5d5ef0e9f6e751
parent1bb9dc82178fea878e8984d9b526f78f5bc41677
asix-sigma: eliminate magic numbers in firmware file references

Use symbolic identifiers to select firmware images, which eliminates
magic 0/1/2 position numbers in the list of files, improves readability
and also improves robustness. Move 'devc' to 'ctx' and before other
arguments in routine signatures while we are here.
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h