Re: [PATCH] staging: comedi: rework the comedi_auto_config 'context'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 30, 2012 at 03:19:48PM -0700, H Hartley Sweeten wrote:
> The 'context' passed to comedi_auto_config() is currently an unsigned
> long value. This value is passed to the (*auto_attach)() function of a
> comedi driver. Currently none of the comedi drivers use the 'context'.
> 
> The only callers of comedi_auto_config() are the two inline wrappers
> comedi_pci_auto_config() and comedi_usb_auto_config(). Both of these
> pass a 'context' of 0.
> 
> Change the 'context' to a const void * and rework the auto_config code
> and the pci/usb drivers so that the 'context' passed is the struct
> {pci,usb}_device_id * that is passed to the {pci,usb}_driver (*probe)()
> function.

I thought we just changed this all to unsigned long in the first place?

Totally confused now,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux