u8 digital_out_shadow;
};
-struct comedi_dt9812 {
+struct dt9812_private {
struct slot_dt9812 *slot;
u32 serial;
};
struct semaphore mutex;
u32 serial;
struct usb_dt9812 *usb;
- struct comedi_dt9812 *comedi;
+ struct dt9812_private *comedi;
};
static struct slot_dt9812 dt9812[DT9812_NUM_SLOTS];
static int dt9812_comedi_open(struct comedi_device *dev)
{
- struct comedi_dt9812 *devpriv = dev->private;
+ struct dt9812_private *devpriv = dev->private;
int result = -ENODEV;
down(&devpriv->slot->mutex);
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{
- struct comedi_dt9812 *devpriv = dev->private;
+ struct dt9812_private *devpriv = dev->private;
unsigned int channel = CR_CHAN(insn->chanspec);
int n;
u8 bits = 0;
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{
- struct comedi_dt9812 *devpriv = dev->private;
+ struct dt9812_private *devpriv = dev->private;
unsigned int channel = CR_CHAN(insn->chanspec);
int n;
u8 bits = 0;
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{
- struct comedi_dt9812 *devpriv = dev->private;
+ struct dt9812_private *devpriv = dev->private;
unsigned int channel = CR_CHAN(insn->chanspec);
int n;
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{
- struct comedi_dt9812 *devpriv = dev->private;
+ struct dt9812_private *devpriv = dev->private;
unsigned int channel = CR_CHAN(insn->chanspec);
int n;
u16 value;
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{
- struct comedi_dt9812 *devpriv = dev->private;
+ struct dt9812_private *devpriv = dev->private;
unsigned int channel = CR_CHAN(insn->chanspec);
int n;
static int dt9812_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
- struct comedi_dt9812 *devpriv;
+ struct dt9812_private *devpriv;
int i;
struct comedi_subdevice *s;
int ret;