Commit 293b048a authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: adl_pci9111: remove unnecessary comments

Remove some obvious comments.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 499a76dc
...@@ -130,11 +130,8 @@ static const struct comedi_lrange pci9111_ai_range = { ...@@ -130,11 +130,8 @@ static const struct comedi_lrange pci9111_ai_range = {
} }
}; };
/* Private data structure */
struct pci9111_private_data { struct pci9111_private_data {
unsigned long lcr_io_base; /* Local configuration register base unsigned long lcr_io_base;
* address */
int stop_counter; int stop_counter;
int stop_is_none; int stop_is_none;
...@@ -144,7 +141,7 @@ struct pci9111_private_data { ...@@ -144,7 +141,7 @@ struct pci9111_private_data {
unsigned int chunk_counter; unsigned int chunk_counter;
unsigned int chunk_num_samples; unsigned int chunk_num_samples;
int ao_readback; /* Last written analog output data */ int ao_readback;
unsigned int div1; unsigned int div1;
unsigned int div2; unsigned int div2;
...@@ -152,10 +149,6 @@ struct pci9111_private_data { ...@@ -152,10 +149,6 @@ struct pci9111_private_data {
short ai_bounce_buffer[2 * PCI9111_FIFO_HALF_SIZE]; short ai_bounce_buffer[2 * PCI9111_FIFO_HALF_SIZE];
}; };
/* ------------------------------------------------------------------ */
/* PLX9050 SECTION */
/* ------------------------------------------------------------------ */
#define PLX9050_REGISTER_INTERRUPT_CONTROL 0x4c #define PLX9050_REGISTER_INTERRUPT_CONTROL 0x4c
#define PLX9050_LINTI1_ENABLE (1 << 0) #define PLX9050_LINTI1_ENABLE (1 << 0)
...@@ -191,12 +184,6 @@ static void plx9050_interrupt_control(unsigned long io_base, ...@@ -191,12 +184,6 @@ static void plx9050_interrupt_control(unsigned long io_base,
outb(flags, io_base + PLX9050_REGISTER_INTERRUPT_CONTROL); outb(flags, io_base + PLX9050_REGISTER_INTERRUPT_CONTROL);
} }
/* ------------------------------------------------------------------ */
/* MISCELLANEOUS SECTION */
/* ------------------------------------------------------------------ */
/* 8254 timer */
static void pci9111_timer_set(struct comedi_device *dev) static void pci9111_timer_set(struct comedi_device *dev)
{ {
struct pci9111_private_data *dev_private = dev->private; struct pci9111_private_data *dev_private = dev->private;
...@@ -317,19 +304,12 @@ static void pci9111_fifo_reset(struct comedi_device *dev) ...@@ -317,19 +304,12 @@ static void pci9111_fifo_reset(struct comedi_device *dev)
outb(0, int_ctrl_reg); outb(0, int_ctrl_reg);
} }
/* ------------------------------------------------------------------ */
/* HARDWARE TRIGGERED ANALOG INPUT SECTION */
/* ------------------------------------------------------------------ */
/* Cancel analog input autoscan */
static int pci9111_ai_cancel(struct comedi_device *dev, static int pci9111_ai_cancel(struct comedi_device *dev,
struct comedi_subdevice *s) struct comedi_subdevice *s)
{ {
struct pci9111_private_data *dev_private = dev->private; struct pci9111_private_data *dev_private = dev->private;
/* Disable interrupts */ /* Disable interrupts */
plx9050_interrupt_control(dev_private->lcr_io_base, true, true, true, plx9050_interrupt_control(dev_private->lcr_io_base, true, true, true,
true, false); true, false);
...@@ -514,8 +494,6 @@ static int pci9111_ai_do_cmd_test(struct comedi_device *dev, ...@@ -514,8 +494,6 @@ static int pci9111_ai_do_cmd_test(struct comedi_device *dev,
} }
/* Analog input command */
static int pci9111_ai_do_cmd(struct comedi_device *dev, static int pci9111_ai_do_cmd(struct comedi_device *dev,
struct comedi_subdevice *s) struct comedi_subdevice *s)
{ {
...@@ -630,10 +608,6 @@ static void pci9111_ai_munge(struct comedi_device *dev, ...@@ -630,10 +608,6 @@ static void pci9111_ai_munge(struct comedi_device *dev,
array[i] = ((array[i] >> shift) & maxdata) ^ invert; array[i] = ((array[i] >> shift) & maxdata) ^ invert;
} }
/* ------------------------------------------------------------------ */
/* INTERRUPT SECTION */
/* ------------------------------------------------------------------ */
static irqreturn_t pci9111_interrupt(int irq, void *p_device) static irqreturn_t pci9111_interrupt(int irq, void *p_device)
{ {
struct comedi_device *dev = p_device; struct comedi_device *dev = p_device;
...@@ -773,12 +747,6 @@ static irqreturn_t pci9111_interrupt(int irq, void *p_device) ...@@ -773,12 +747,6 @@ static irqreturn_t pci9111_interrupt(int irq, void *p_device)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
/* ------------------------------------------------------------------ */
/* INSTANT ANALOG INPUT OUTPUT SECTION */
/* ------------------------------------------------------------------ */
/* analog instant input */
static int pci9111_ai_insn_read(struct comedi_device *dev, static int pci9111_ai_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn, unsigned int *data)
...@@ -891,18 +859,11 @@ static int pci9111_do_insn_bits(struct comedi_device *dev, ...@@ -891,18 +859,11 @@ static int pci9111_do_insn_bits(struct comedi_device *dev,
return insn->n; return insn->n;
} }
/* ------------------------------------------------------------------ */
/* INITIALISATION SECTION */
/* ------------------------------------------------------------------ */
/* Reset device */
static int pci9111_reset(struct comedi_device *dev) static int pci9111_reset(struct comedi_device *dev)
{ {
struct pci9111_private_data *dev_private = dev->private; struct pci9111_private_data *dev_private = dev->private;
/* Set trigger source to software */ /* Set trigger source to software */
plx9050_interrupt_control(dev_private->lcr_io_base, true, true, true, plx9050_interrupt_control(dev_private->lcr_io_base, true, true, true,
true, false); true, false);
......
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