RE: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 9:32 AM, Dan Carpenter wrote: > On Thu, Jul 19, 2012 at 11:20:52AM -0500, H Hartley Sweeten wrote: >> On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: >>> That needs to be something like: >>> >>> return dev->hw_dev ? to_pci_dev(dev->hw_dev) : NULL; >> >> Hmm..

Re: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread Dan Carpenter
On Thu, Jul 19, 2012 at 11:20:52AM -0500, H Hartley Sweeten wrote: > On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: > > On 2012-07-19 02:24, H Hartley Sweeten wrote: > >> Introduce a wrapper for to_pci_dev() to allow the comedi pci drivers > >> to store the pci_dev pointer in the

RE: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: > On 2012-07-19 02:24, H Hartley Sweeten wrote: >> 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

Re: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread Ian Abbott
On 2012-07-19 02:24, H Hartley Sweeten wrote: 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 Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

Re: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread Ian Abbott
On 2012-07-19 02:24, H Hartley Sweeten wrote: 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 hswee...@visionengravers.com Cc: Ian Abbott

RE: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: On 2012-07-19 02:24, H Hartley Sweeten wrote: 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

Re: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread Dan Carpenter
On Thu, Jul 19, 2012 at 11:20:52AM -0500, H Hartley Sweeten wrote: On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: On 2012-07-19 02:24, H Hartley Sweeten wrote: Introduce a wrapper for to_pci_dev() to allow the comedi pci drivers to store the pci_dev pointer in the comedi_device

RE: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 9:32 AM, Dan Carpenter wrote: On Thu, Jul 19, 2012 at 11:20:52AM -0500, H Hartley Sweeten wrote: On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: That needs to be something like: return dev-hw_dev ? to_pci_dev(dev-hw_dev) : NULL; Hmm.. I'm not really

[PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-18 Thread H Hartley Sweeten
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 Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedidev.h | 5 + 1 file

[PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-18 Thread H Hartley Sweeten
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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman