]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.h
asix-sigma: use driver-private storage for instances
[libsigrok.git] / hardware / asix-sigma / asix-sigma.h
index dd601bd48a088d507337345299de1771291626b6..12410238a7000e5298254b6d23edaa2619cd4fd2 100644 (file)
@@ -173,8 +173,13 @@ struct sigma_state {
        int chunks_downloaded;
 };
 
+/* Private driver context. */
+struct drv_context {
+       GSList *instances;
+};
+
 /* Private, per-device-instance driver context. */
-struct context {
+struct dev_context {
        struct ftdi_context ftdic;
        uint64_t cur_samplerate;
        uint64_t period_ps;