RE: [PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 4:53 PM, Greg KH wrote: > On Wed, Jul 18, 2012 at 06:23:20PM -0700, H Hartley Sweeten wrote: >> All the comedi pci drivers currently store a pointer to the pci_dev >> in their private data. We can use the 'struct device *hw_dev' variable >> in the comedi_device struct

Re: [PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-19 Thread Greg KH
On Wed, Jul 18, 2012 at 06:23:20PM -0700, H Hartley Sweeten wrote: > All the comedi pci drivers currently store a pointer to the pci_dev > in their private data. We can use the 'struct device *hw_dev' variable > in the comedi_device struct instead and introduce a wrapper for > to_pci_dev() to

Re: [PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-19 Thread Greg KH
On Wed, Jul 18, 2012 at 06:23:20PM -0700, H Hartley Sweeten wrote: All the comedi pci drivers currently store a pointer to the pci_dev in their private data. We can use the 'struct device *hw_dev' variable in the comedi_device struct instead and introduce a wrapper for to_pci_dev() to allow

RE: [PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 4:53 PM, Greg KH wrote: On Wed, Jul 18, 2012 at 06:23:20PM -0700, H Hartley Sweeten wrote: All the comedi pci drivers currently store a pointer to the pci_dev in their private data. We can use the 'struct device *hw_dev' variable in the comedi_device struct instead

[PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-18 Thread H Hartley Sweeten
All the comedi pci drivers currently store a pointer to the pci_dev in their private data. We can use the 'struct device *hw_dev' variable in the comedi_device struct instead and introduce a wrapper for to_pci_dev() to allow the drivers to easily get the pci_dev. This patchset does just that. It

[PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-18 Thread H Hartley Sweeten
All the comedi pci drivers currently store a pointer to the pci_dev in their private data. We can use the 'struct device *hw_dev' variable in the comedi_device struct instead and introduce a wrapper for to_pci_dev() to allow the drivers to easily get the pci_dev. This patchset does just that. It