]> sigrok.org Git - libsigrok.git/commit
uni-t-dmm: Simplify subdriver setup.
authorUwe Hermann <redacted>
Tue, 30 Oct 2012 13:23:05 +0000 (14:23 +0100)
committerUwe Hermann <redacted>
Tue, 30 Oct 2012 13:23:05 +0000 (14:23 +0100)
commit6ac5f8922e63d1f584a69969190af0389a88d812
treee6ba1d830dbbda416f5f164c9dcc8c8134d79a2c
parentfdbcb86dba17eec8e1492736adf1aec45e746c00
uni-t-dmm: Simplify subdriver setup.

So far, it seems we can make this work with just hw_init() needing to
be subdriver-specific (it will point 'di' to the respective per-subdriver
entry), the rest of the API functions can then use a strcmp() on di->name to
learn which subdriver they belong to.
hardware/uni-t-dmm/api.c
hardware/uni-t-dmm/protocol.h