libsigrok/hardware
Alexandru Gagniuc 3098b3902d serial-dmm: Simplify wrapper layout
Wrappers for hw_init, hw_cleanup, clear_instances, and hw_scan are needed for
each subdriver due to the nature of serial-dmm. These wrappers are implemented
as macros, in order to reduce the number of lines of code.

For each of those functions, we have a separate wrapper list, then we connect
them together in a first-class driver using a DRV macro, and yet another list
(the DRV list).

Instead of declaring those wrappers in separate lists, include them in the DRV
macro. This approach reduces the number of macro lists from five to just one.

From the perspective of adding a new subdriver, this also greatly reduces the
number of places needed to hook in a new device.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-13 23:16:34 +01:00
..
agilent-dmm hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
alsa Add a struct sr_context * parameter to hw_init() 2012-12-03 12:07:40 +01:00
asix-sigma hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
chronovu-la8 hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
colead-slm hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
common hardware: A few further USB error message fixups 2012-12-05 01:34:15 +01:00
demo hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
fluke-dmm hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
fx2lafw fx2lafw: Don't say "Device came back" when it didn't 2012-12-06 22:40:00 +01:00
hantek-dso hardware: A few further USB error message fixups 2012-12-05 01:34:15 +01:00
lascar-el-usb lascar-el-usb: add scanning functionality 2012-12-04 23:58:26 +01:00
link-mso19 Add a struct sr_context * parameter to hw_init() 2012-12-03 12:07:40 +01:00
openbench-logic-sniffer hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
serial-dmm serial-dmm: Simplify wrapper layout 2012-12-13 23:16:34 +01:00
tondaj-sl-814 tondaj-sl-814: Fix unused parameter warning 2012-12-03 19:39:58 -06:00
uni-t-dmm hardware: Call libusb_error_name() in all USB-related error messages 2012-12-05 01:14:44 +01:00
victor-dmm hardware: Call libusb_error_name() in all USB-related error messages 2012-12-05 01:14:44 +01:00
zeroplus-logic-cube hardware: Call libusb_error_name() in all USB-related error messages 2012-12-05 01:14:44 +01:00
Makefile.am lascar-el-usb: Initial driver skeleton. 2012-12-03 03:53:44 +01:00