sr: remove unused argument from hardware driver function init()
authorBert Vermeulen <bert@biot.com>
Tue, 3 Jul 2012 10:55:46 +0000 (12:55 +0200)
committerBert Vermeulen <bert@biot.com>
Fri, 3 Aug 2012 08:27:36 +0000 (10:27 +0200)
commit13b8fa377cf38203165dcfd437273f032eafda22
tree2de383749a0ddaaeadf12f93e3eddae74a57cdbc
parent7fd18994acf25bc7f8b49fa4de3614f1504373e9
sr: remove unused argument from hardware driver function init()

It was actually used in one way: the session file loaded abused it for
passing in the filename -- something it definitely wasn't intended for.
This now uses the proper way to pass arguments to a driver: the new
SR_HWCAP_SESSIONFILE.

The OLS driver could also use it as an indication of the serial port to
use instead of actively probing all serial ports on the system, but there
wasn't any frontend code that passed in such a parameter, making it
entirely useless. That will soon be handled differently with the new
scan() API call, regardless.
13 files changed:
libsigrok/hardware/asix-sigma/asix-sigma.c
libsigrok/hardware/chronovu-la8/api.c
libsigrok/hardware/demo/demo.c
libsigrok/hardware/fx2lafw/fx2lafw.c
libsigrok/hardware/genericdmm/api.c
libsigrok/hardware/hantek-dso/api.c
libsigrok/hardware/link-mso19/link-mso19.c
libsigrok/hardware/openbench-logic-sniffer/ols.c
libsigrok/hardware/zeroplus-logic-cube/zeroplus.c
libsigrok/hwdriver.c
libsigrok/libsigrok.h
libsigrok/session_driver.c
libsigrok/session_file.c