static int pcmmio_dio_insn_config(comedi_device *dev,comedi_subdevice *s,
comedi_insn *insn,lsampl_t *data);
-static irqreturn_t interrupt_pcmmio(int irq, void *d, struct pt_regs *regs);
+static irqreturn_t interrupt_pcmmio(int irq, void *d PT_REGS_ARG);
static void pcmmio_stop_intr(comedi_device *, comedi_subdevice *);
static int pcmmio_cancel(comedi_device *dev, comedi_subdevice *s);
static int pcmmio_cmd(comedi_device *dev, comedi_subdevice *s);
(void)unlock_port(dev, asic, port); /* not reached, suppress compiler warnings*/
}
-static irqreturn_t interrupt_pcmmio(int irq, void *d, struct pt_regs *regs)
+static irqreturn_t interrupt_pcmmio(int irq, void *d PT_REGS_ARG)
{
int asic, got1 = 0;
comedi_device *dev = (comedi_device *)d;
// analogue IN
// interrupt service routine
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
static void usbduxsub_ai_IsocIrq(struct urb *urb)
#else
-static void usbduxsub_ai_IsocIrq(struct urb *urb, struct pt_regs *regs)
+static void usbduxsub_ai_IsocIrq(struct urb *urb PT_REGS_ARG)
#endif
{
int i,err,n;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
static void usbduxsub_ao_IsocIrq(struct urb *urb) {
#else
-static void usbduxsub_ao_IsocIrq(struct urb *urb, struct pt_regs *regs) {
+static void usbduxsub_ao_IsocIrq(struct urb *urb PT_REGS_ARG) {
#endif
int i,ret;
int8_t* datap;
// analogue IN
// interrupt service routine
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
static void usbduxfastsub_ai_Irq(struct urb *urb)
#else
-static void usbduxfastsub_ai_Irq(struct urb *urb, struct pt_regs *regs)
+static void usbduxfastsub_ai_Irq(struct urb *urb PT_REGS_ARG)
#endif
{
int n,err;