Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1335cee5 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9fe635cd
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -642,7 +642,7 @@ static const struct hpdi_board *hpdi_find_board(struct pci_dev *pcidev)
	return NULL;
}

static int hpdi_auto_attach(struct comedi_device *dev,
static int gsc_hpdi_auto_attach(struct comedi_device *dev,
				unsigned long context_unused)
{
	struct pci_dev *pcidev = comedi_to_pci_dev(dev);
@@ -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,