#include "mite.h"
+#define DRIVER_NAME "ni_6527"
+
#define NI6527_DIO_SIZE 4096
#define NI6527_MITE_SIZE 4096
struct comedi_devconfig *it);
static void ni6527_detach(struct comedi_device *dev);
static struct comedi_driver driver_ni6527 = {
- .driver_name = "ni6527",
+ .driver_name = DRIVER_NAME,
.module = THIS_MODULE,
.attach = ni6527_attach,
.detach = ni6527_detach,
writeb(0x00, devpriv->mite->daq_io_addr + Master_Interrupt_Control);
ret = request_irq(mite_irq(devpriv->mite), ni6527_interrupt,
- IRQF_SHARED, "ni6527", dev);
+ IRQF_SHARED, DRIVER_NAME, dev);
if (ret < 0)
dev_warn(dev->class_dev, "irq not available\n");
else
}
}
}
- dev_err(dev->class_dev, "ni6527: no device found\n");
+ dev_err(dev->class_dev, DRIVER_NAME ": no device found\n");
mite_list_devices();
return -EIO;
}