Commit 283ce669 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_3xxx: remove 'tsk_Current' from private data

The interrupt function should be using comedi_event() to let the user
know data is available from the analog input subdevice.

The analog input subdevice is currently broken and nothing sets
tsk_Current anyway so just remove it.
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 f43abbb4
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/sched.h>
#include "../comedidev.h" #include "../comedidev.h"
...@@ -374,7 +373,6 @@ struct apci3xxx_private { ...@@ -374,7 +373,6 @@ struct apci3xxx_private {
unsigned int ui_EocEosConversionTime; unsigned int ui_EocEosConversionTime;
unsigned char b_EocEosConversionTimeBase; unsigned char b_EocEosConversionTimeBase;
unsigned char b_SingelDiff; unsigned char b_SingelDiff;
struct task_struct *tsk_Current;
}; };
#include "addi-data/hwdrv_apci3xxx.c" #include "addi-data/hwdrv_apci3xxx.c"
...@@ -405,8 +403,7 @@ static irqreturn_t apci3xxx_irq_handler(int irq, void *d) ...@@ -405,8 +403,7 @@ static irqreturn_t apci3xxx_irq_handler(int irq, void *d)
/* Set the interrupt flag */ /* Set the interrupt flag */
devpriv->b_EocEosInterrupt = 2; devpriv->b_EocEosInterrupt = 2;
/* Send a signal to from kernel to user space */ /* FIXME: comedi_event() */
send_sig(SIGIO, devpriv->tsk_Current, 0);
} }
} }
return IRQ_RETVAL(1); return IRQ_RETVAL(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment