diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2019-04-16 16:37:47 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-17 13:40:51 +0300 |
| commit | 4138b1d44f34703508a3d293011216557b6b5e68 (patch) | |
| tree | d638d3b6a118b218638af2b0228b62e75dcd9404 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 1598475c66514ce55b570b623d790172d02046f7 (diff) | |
| download | linux-4138b1d44f34703508a3d293011216557b6b5e68.tar.xz | |
staging: comedi: dyna_pci10xx: Don't bother configuring len_chanlist
In the Comedi "attach" and "auto_attach" handlers that set up the Comedi
subdevices, there is no need to initialize the `len_chanlist` member of
Comedi subdevices that do not support Comedi asynchronous streaming
commands. They can be left set to the initial zeroed out value and
the Comedi core will change the `len_chanlist` member to 1 afterwards in
that case. The "dyna_pci10xx" driver currently sets the `len_chanlist`
members to the same value as the `n_chan` ("number of channels") member,
but this is unnecessary as none of them support asynchronous streaming.
Remove the initialization of `len_chanlist` from all the subdevices.
This will affect the information reported by the COMEDI_SUBDINFO ioctl
slightly.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
