diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-06-12 16:23:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 14:33:56 -0700 |
commit | 656e39fedcf01b688a2aa1dca78c6c2a571264f1 (patch) | |
tree | 1d12a9dd9dd5136016a7f39b3d10b38845bdfd34 /tools/perf/scripts/python/netdev-times.py | |
parent | f32376e993a7657198974e713577152ac67833db (diff) |
staging: comedi: addi_apci_3xxx: only allocate needed subdevices
The number of subdevices needed by a given board supported by this
driver can cary from 2 (for the apci3500) to a maximum of 5. Currently
this driver always allocates 7 subdevices and sets the subdevice type
to COMEDI_SUBD_UNUSED for the ones that are not needed.
Calculate the actual number of needed subdevices from the boardinfo
and only allocate and setup the ones that are used.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions