From: H Hartley Sweeten Date: Tue, 11 Sep 2012 17:49:04 +0000 (-0700) Subject: staging: comedi: adl_pci9111: remove unnecessary comments X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=293b048a1677162a1c23cdaa441525c2602705f2;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: adl_pci9111: remove unnecessary comments Remove some obvious comments. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c b/drivers/staging/comedi/drivers/adl_pci9111.c index 44b01f4b07e6..d2d072e5ca41 100644 --- a/drivers/staging/comedi/drivers/adl_pci9111.c +++ b/drivers/staging/comedi/drivers/adl_pci9111.c @@ -130,11 +130,8 @@ static const struct comedi_lrange pci9111_ai_range = { } }; -/* Private data structure */ - struct pci9111_private_data { - unsigned long lcr_io_base; /* Local configuration register base - * address */ + unsigned long lcr_io_base; int stop_counter; int stop_is_none; @@ -144,7 +141,7 @@ struct pci9111_private_data { unsigned int chunk_counter; unsigned int chunk_num_samples; - int ao_readback; /* Last written analog output data */ + int ao_readback; unsigned int div1; unsigned int div2; @@ -152,10 +149,6 @@ struct pci9111_private_data { short ai_bounce_buffer[2 * PCI9111_FIFO_HALF_SIZE]; }; -/* ------------------------------------------------------------------ */ -/* PLX9050 SECTION */ -/* ------------------------------------------------------------------ */ - #define PLX9050_REGISTER_INTERRUPT_CONTROL 0x4c #define PLX9050_LINTI1_ENABLE (1 << 0) @@ -191,12 +184,6 @@ static void plx9050_interrupt_control(unsigned long io_base, outb(flags, io_base + PLX9050_REGISTER_INTERRUPT_CONTROL); } -/* ------------------------------------------------------------------ */ -/* MISCELLANEOUS SECTION */ -/* ------------------------------------------------------------------ */ - -/* 8254 timer */ - static void pci9111_timer_set(struct comedi_device *dev) { struct pci9111_private_data *dev_private = dev->private; @@ -317,19 +304,12 @@ static void pci9111_fifo_reset(struct comedi_device *dev) outb(0, int_ctrl_reg); } -/* ------------------------------------------------------------------ */ -/* HARDWARE TRIGGERED ANALOG INPUT SECTION */ -/* ------------------------------------------------------------------ */ - -/* Cancel analog input autoscan */ - static int pci9111_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s) { struct pci9111_private_data *dev_private = dev->private; /* Disable interrupts */ - plx9050_interrupt_control(dev_private->lcr_io_base, true, true, true, true, false); @@ -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, struct comedi_subdevice *s) { @@ -630,10 +608,6 @@ static void pci9111_ai_munge(struct comedi_device *dev, array[i] = ((array[i] >> shift) & maxdata) ^ invert; } -/* ------------------------------------------------------------------ */ -/* INTERRUPT SECTION */ -/* ------------------------------------------------------------------ */ - static irqreturn_t pci9111_interrupt(int irq, void *p_device) { struct comedi_device *dev = p_device; @@ -773,12 +747,6 @@ static irqreturn_t pci9111_interrupt(int irq, void *p_device) return IRQ_HANDLED; } -/* ------------------------------------------------------------------ */ -/* INSTANT ANALOG INPUT OUTPUT SECTION */ -/* ------------------------------------------------------------------ */ - -/* analog instant input */ - static int pci9111_ai_insn_read(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) @@ -891,18 +859,11 @@ static int pci9111_do_insn_bits(struct comedi_device *dev, return insn->n; } -/* ------------------------------------------------------------------ */ -/* INITIALISATION SECTION */ -/* ------------------------------------------------------------------ */ - -/* Reset device */ - static int pci9111_reset(struct comedi_device *dev) { struct pci9111_private_data *dev_private = dev->private; /* Set trigger source to software */ - plx9050_interrupt_control(dev_private->lcr_io_base, true, true, true, true, false);