libsigrok.h: Don't store subdriver in sr_dev_driver
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 13 Dec 2012 17:08:38 +0000 (11:08 -0600)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 13 Dec 2012 22:16:34 +0000 (23:16 +0100)
commitc69049091ec6e1383805064d3c472264384ffb57
tree75e70638536d436d44bfc3adf4e49807f15b6721
parentd128bf12b27432988cc5a0bf7d6ec3fca0696b0b
libsigrok.h: Don't store subdriver in sr_dev_driver

Not all drivers use subdrivers. The only reason the subdriver field was
introduced was to accomodate the model of serial-dmm.

The sr_dev_driver struct is available to the frontend. Exposing the subdriver
field creates the problem of exposing knowledge of libsigrok's internal driver
layout, even though the drivers are designed to be a flat list to the frontend.

Store the subdriver in the dev_context struct of serial-dmm.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
hardware/serial-dmm/api.c
hardware/serial-dmm/protocol.h
libsigrok.h