diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2014-03-13 21:16:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-17 21:19:49 (GMT) |
commit | 1335cee5d2b4d29f7ba0ef0fc1f112a159c184d7 (patch) | |
tree | 86e3eccb2764df0899350b22ec6f25e19db5ac7d /drivers | |
parent | 9fe635cd864fb6196e11d6e0e172e1b5504de4ac (diff) | |
download | linux-1335cee5d2b4d29f7ba0ef0fc1f112a159c184d7.tar.xz |
staging: comedi: gsc_hpdi: rename the (*auto_attach) and (*detach) functions
For aesthetics, rename these functions so they have namespace associated
with the driver.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/gsc_hpdi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.c b/drivers/staging/comedi/drivers/gsc_hpdi.c index 400f5ec..364c91d 100644 --- a/drivers/staging/comedi/drivers/gsc_hpdi.c +++ b/drivers/staging/comedi/drivers/gsc_hpdi.c @@ -642,8 +642,8 @@ static const struct hpdi_board *hpdi_find_board(struct pci_dev *pcidev) return NULL; } -static int hpdi_auto_attach(struct comedi_device *dev, - unsigned long context_unused) +static int gsc_hpdi_auto_attach(struct comedi_device *dev, + unsigned long context_unused) { struct pci_dev *pcidev = comedi_to_pci_dev(dev); const struct hpdi_board *thisboard; @@ -733,7 +733,7 @@ static int hpdi_auto_attach(struct comedi_device *dev, return init_hpdi(dev); } -static void hpdi_detach(struct comedi_device *dev) +static void gsc_hpdi_detach(struct comedi_device *dev) { struct pci_dev *pcidev = comedi_to_pci_dev(dev); struct hpdi_private *devpriv = dev->private; @@ -771,8 +771,8 @@ static void hpdi_detach(struct comedi_device *dev) static struct comedi_driver gsc_hpdi_driver = { .driver_name = "gsc_hpdi", .module = THIS_MODULE, - .auto_attach = hpdi_auto_attach, - .detach = hpdi_detach, + .auto_attach = gsc_hpdi_auto_attach, + .detach = gsc_hpdi_detach, }; static int gsc_hpdi_pci_probe(struct pci_dev *dev, |