staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 17:39:33 +0000 (10:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:19:39 +0000 (16:19 -0700)
commitddb01367b85df2c4c773bde047e5b04b6de1835b
tree5a8155b7421792c9027793918e0691985acbf16a
parent289a64295c9ae897c18302c15abd8f0464e8c6cb
staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

Introduce a wrapper for to_pci_dev() to allow the comedi_pci_drivers
to store the pci_dev pointer in the comedi_device hw_dev variable and
retrieve it easily.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbot <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h