staging: comedi: ke_counter: rename cnt_auto_attach()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 3 Mar 2014 23:47:40 +0000 (16:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Mar 2014 00:40:27 +0000 (16:40 -0800)
For aesthetics, rename this function so ist has namespace associated
with the driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ke_counter.c

index ea30cfe0a0bf13921dae7350843ef837793b0961..aab72ab3434e31c7959b761be08a1a91ff0a7a70 100644 (file)
@@ -95,8 +95,8 @@ static int ke_counter_insn_read(struct comedi_device *dev,
        return insn->n;
 }
 
-static int cnt_auto_attach(struct comedi_device *dev,
-                                    unsigned long context_unused)
+static int ke_counter_auto_attach(struct comedi_device *dev,
+                                 unsigned long context_unused)
 {
        struct pci_dev *pcidev = comedi_to_pci_dev(dev);
        struct comedi_subdevice *s;
@@ -132,7 +132,7 @@ static int cnt_auto_attach(struct comedi_device *dev,
 static struct comedi_driver ke_counter_driver = {
        .driver_name    = "ke_counter",
        .module         = THIS_MODULE,
-       .auto_attach    = cnt_auto_attach,
+       .auto_attach    = ke_counter_auto_attach,
        .detach         = comedi_pci_disable,
 };