libsigrok/src/hardware
Lars-Peter Clausen 15a5bfe481 Add helper function for scan completion
A common task during device scan is to add the newly discovered devices to
the instance list of the driver. Currently this is done by each driver on
its own. This patch introduces a new helper function std_scan_complete()
which takes care of this. The function should be called at the end of a
driver's scan() callback before returning the device list.

Doing this with a helper function provides guaranteed consistent behaviour
among drivers and hopefully paves the way to moving more standard
functionality directly into the sigrok core.

Another common task that every driver has to do for each device instance is
to initialize the device's driver field. So this is done in the new helper
function as well.

All drivers that can make use of the new helper are updated.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2016-05-27 14:44:24 +02:00
..
agilent-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
appa-55ii Add helper function for scan completion 2016-05-27 14:44:24 +02:00
arachnid-labs-re-load-pro Add helper function for scan completion 2016-05-27 14:44:24 +02:00
asix-sigma Add helper function for scan completion 2016-05-27 14:44:24 +02:00
atten-pps3xxx Add helper function for scan completion 2016-05-27 14:44:24 +02:00
baylibre-acme Add helper function for scan completion 2016-05-27 14:44:24 +02:00
beaglelogic Add helper function for scan completion 2016-05-27 14:44:24 +02:00
brymen-bm86x Add helper function for scan completion 2016-05-27 14:44:24 +02:00
brymen-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
cem-dt-885x Add helper function for scan completion 2016-05-27 14:44:24 +02:00
center-3xx Add helper function for scan completion 2016-05-27 14:44:24 +02:00
chronovu-la Add helper function for scan completion 2016-05-27 14:44:24 +02:00
colead-slm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
conrad-digi-35-cpu Add helper function for scan completion 2016-05-27 14:44:24 +02:00
demo Add helper function for scan completion 2016-05-27 14:44:24 +02:00
deree-de5000 Add helper function for scan completion 2016-05-27 14:44:24 +02:00
fluke-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
ftdi-la Add helper function for scan completion 2016-05-27 14:44:24 +02:00
fx2lafw Add helper function for scan completion 2016-05-27 14:44:24 +02:00
gmc-mh-1x-2x Add helper function for scan completion 2016-05-27 14:44:24 +02:00
gwinstek-gds-800 Put driver pointers into special section 2016-05-18 01:41:55 +02:00
hameg-hmo Put driver pointers into special section 2016-05-18 01:41:55 +02:00
hantek-6xxx Add helper function for scan completion 2016-05-27 14:44:24 +02:00
hantek-dso Add helper function for scan completion 2016-05-27 14:44:24 +02:00
hp-3457a Put driver pointers into special section 2016-05-18 01:41:55 +02:00
hung-chang-dso-2100 Add helper function for scan completion 2016-05-27 14:44:24 +02:00
ikalogic-scanalogic2 Add helper function for scan completion 2016-05-27 14:44:24 +02:00
ikalogic-scanaplus Add helper function for scan completion 2016-05-27 14:44:24 +02:00
kecheng-kc-330b Add helper function for scan completion 2016-05-27 14:44:24 +02:00
kern-scale Add helper function for scan completion 2016-05-27 14:44:24 +02:00
korad-kaxxxxp Add helper function for scan completion 2016-05-27 14:44:24 +02:00
lascar-el-usb Add helper function for scan completion 2016-05-27 14:44:24 +02:00
lecroy-logicstudio Add helper function for scan completion 2016-05-27 14:44:24 +02:00
link-mso19 Add helper function for scan completion 2016-05-27 14:44:24 +02:00
manson-hcs-3xxx Add helper function for scan completion 2016-05-27 14:44:24 +02:00
maynuo-m97 Put driver pointers into special section 2016-05-18 01:41:55 +02:00
mic-985xx Add helper function for scan completion 2016-05-27 14:44:24 +02:00
motech-lps-30x Add helper function for scan completion 2016-05-27 14:44:24 +02:00
norma-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
openbench-logic-sniffer Add helper function for scan completion 2016-05-27 14:44:24 +02:00
pce-322a Add helper function for scan completion 2016-05-27 14:44:24 +02:00
pipistrello-ols Add helper function for scan completion 2016-05-27 14:44:24 +02:00
rigol-ds Put driver pointers into special section 2016-05-18 01:41:55 +02:00
saleae-logic16 Add helper function for scan completion 2016-05-27 14:44:24 +02:00
scpi-pps scpi-pps: Add profile for HP 6633A supply 2016-05-19 08:16:51 -07:00
serial-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
sysclk-lwla Add helper function for scan completion 2016-05-27 14:44:24 +02:00
teleinfo Add helper function for scan completion 2016-05-27 14:44:24 +02:00
testo Add helper function for scan completion 2016-05-27 14:44:24 +02:00
tondaj-sl-814 Add helper function for scan completion 2016-05-27 14:44:24 +02:00
uni-t-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
uni-t-ut32x Add helper function for scan completion 2016-05-27 14:44:24 +02:00
victor-dmm Add helper function for scan completion 2016-05-27 14:44:24 +02:00
yokogawa-dlm Put driver pointers into special section 2016-05-18 01:41:55 +02:00
zeroplus-logic-cube Add helper function for scan completion 2016-05-27 14:44:24 +02:00
driver_list_end.c Put driver pointers into special section 2016-05-18 01:41:55 +02:00
driver_list_start.c Put driver pointers into special section 2016-05-18 01:41:55 +02:00