aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2012-12-19 17:27:02 -0700
committerGreg Kroah-Hartman <[email protected]>2013-01-07 14:28:19 -0800
commit90a35c15c5d7d5c6254772d2752975dda185710c (patch)
tree7f240eb4dcd4d9f90e047a75515b7c8d50ca619d /tools/perf/scripts/python/bin
parent71cf6d3ee9351d668e9374d4026bf3337540eb22 (diff)
staging: comedi: store the 'index' for each subdevice
Store the 'index' for each comedi_subdevice when they are initially allocated by comedi_alloc_subdevice(). This allows removing the pointer math in comedi_fops.c which is used to figure out the index that user space uses to access the individual subdevices. Fix the ni_mio_common driver so it also uses the 'index' instead of doing the pointer math. Also, remove a couple unused macros in the pcmda12, pcmmio, and pcmuio drivers which also do the pointer math to figure out the index. Signed-off-by: H Hartley Sweeten <[email protected]> Cc: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions