static int daqp_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
if (local->stop)
return -EIO;
*/
static enum irqreturn daqp_interrupt(int irq, void *dev_id)
{
- struct local_info_t *local = (struct local_info_t *)dev_id;
+ struct local_info_t *local = dev_id;
struct comedi_device *dev;
struct comedi_subdevice *s;
int loop_limit = 10000;
return IRQ_NONE;
}
- if ((struct local_info_t *)s->private != local) {
+ if (s->private != local) {
pr_warn("invalid comedi_subdevice.\n");
return IRQ_NONE;
}
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
int i;
int v;
int counter = 10000;
static int daqp_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
struct comedi_cmd *cmd = &s->async->cmd;
int counter;
int scanlist_start_on_every_entry;
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
int d;
unsigned int chan;
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
if (local->stop)
return -EIO;
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
if (local->stop)
return -EIO;