* value of 1 volt.
  *
  * The only defined flag value is %RF_EXTERNAL (%0x100), indicating that the
- * the range needs to be multiplied by an external reference.
+ * range needs to be multiplied by an external reference.
  */
 struct comedi_krange {
        int min;
  *   major reasons exist why this caused major confusion for users:
  *   1) The register values are _NOT_ in user documentation, but rather in
  *     arcane locations, such as a few register programming manuals that are
- *     increasingly hard to find and the NI MHDDK (comments in in example code).
+ *     increasingly hard to find and the NI MHDDK (comments in example code).
  *     There is no one place to find the various valid values of the registers.
  *   2) The register values are _NOT_ completely consistent.  There is no way to
  *     gain any sense of intuition of which values, or even enums one should use
 
  * @range: Array of &struct comedi_krange, one for each range.
  *
  * Each element of @range[] describes the minimum and maximum physical range
- * range and the type of units.  Typically, the type of unit is %UNIT_volt
+ * and the type of units.  Typically, the type of unit is %UNIT_volt
  * (i.e. volts) and the minimum and maximum are in millionths of a volt.
  * There may also be a flag that indicates the minimum and maximum are merely
  * scale factors for an unknown, external reference.
 
 {
        struct apci1564_private *devpriv = dev->private;
 
-       /* just write the last last to the reload register */
+       /* just write the last to the reload register */
        if (insn->n) {
                unsigned int val = data[insn->n - 1];
 
        unsigned int chan = CR_CHAN(insn->chanspec);
        unsigned long iobase = devpriv->counters + APCI1564_COUNTER(chan);
 
-       /* just write the last last to the reload register */
+       /* just write the last to the reload register */
        if (insn->n) {
                unsigned int val = data[insn->n - 1];
 
 
  * subdev_8255_regbase - get offset of 8255 registers or call-back context
  * @s: comedi subdevice
  *
- * Returns the 'regbase' parameter that was previously passed to to
+ * Returns the 'regbase' parameter that was previously passed to
  * subdev_8255_init() or subdev_8255_mm_init() to set up the subdevice.
  * Only valid if the subdevice was set up successfully.
  */
 
                 * This should be done, but we don't yet know the actual
                 * register values.  These should be tested and then documented
                 * in the ni_route_values/ni_*.csv files, with indication of
-                * who/when/which/how these these were tested.
+                * who/when/which/how these were tested.
                 * When at least a e/m/660x series have been tested, this code
                 * should be uncommented:
                 *
 
  *
  * In the 48-channel version:
  *
- * On subdev 0, the first 24 channels channels are edge-detect channels.
+ * On subdev 0, the first 24 channels are edge-detect channels.
  *
  * In the 96-channel board you have the following channels that can do edge
  * detection:
 
 
        /*
         * Reset any pending interrupts (my card has a tendency to require
-        * require multiple reads on the status register to achieve this).
+        * multiple reads on the status register to achieve this).
         */
        while (--loops) {
                status = inb(dev->iobase + DAQP_STATUS_REG);