]> Pileus Git - ~andy/linux/commit
staging: comedi: das08: Use struct comedi_device hw_dev for PCI
authorIan Abbott <abbotti@mev.co.uk>
Wed, 5 Sep 2012 10:02:40 +0000 (11:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 18:58:24 +0000 (11:58 -0700)
commit40a3ee02f8ce9ecdc1ea085d0b59502baa8976c3
treeb7164866dd7adf5e4a31986991c4f698b904bdd5
parentc396147048fff69d764e5c3d2adca875c7c90a58
staging: comedi: das08: Use struct comedi_device hw_dev for PCI

Remove the pointer to the PCI device from the private data `struct
das08_private_struct`.  Use `comedi_set_hw_dev()` to save a pointer to
the PCI device (actually, its embedded `struct device`) and
`comedi_to_pci_dev()` to retrieve it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das08.c
drivers/staging/comedi/drivers/das08.h