From: H Hartley Sweeten Date: Thu, 4 Sep 2014 17:39:34 +0000 (-0700) Subject: staging: comedi: adl_pci9118: use 'context' in (*auto_attach) X-Git-Tag: fixes-for-v3.18-merge-window~15^2~695 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83defe83332e68f7e477370439d6da6826b715ad;p=pandora-kernel.git staging: comedi: adl_pci9118: use 'context' in (*auto_attach) The pci_device_id 'driver_data' is passed as the 'context' when the (*auto_attach) mechanism is used to attach this driver. Add a boardid enum and index the boardinfo so that the "pci9118dg" boardinfo is automatically selected. This allow removing the pci9118_find_boardinfo() helper. Unfortunately all the boards supported by this driver have the same device id. Add commented out entries in the device table for them. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed