From: H Hartley Sweeten Date: Tue, 14 May 2013 21:30:20 +0000 (-0700) Subject: staging: comedi: dt9812: convert to use comedi (*auto_attach) X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~615 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78750c1234d2abafb12c61a9e96c7860f47a6e7;p=pandora-kernel.git staging: comedi: dt9812: convert to use comedi (*auto_attach) Converting this driver to use the comedi (*auto_attach) mechanism allows pushing the usb (*probe) into the comedi (*auto_attach) and the usb (disconnect) into the comedi (*detach). This removes the disconnect between the usb driver and the comedi driver. Now when the comedi driver is attached it will always have a usb device associated with it. This removes the 16 usb device limitation and allows bringing all the private data into a single struct that can be kzalloc'ed when the comedi driver is (*auto_attached). It also allows removing the the sanity checks that make sure a usb device is connected to the comedi device in the helper functions. For aesthetic reasons, add some whitespace to the subdevice init. Also, fix the analog out subdevice. There are 2 analog output channels available on the usb device. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed