Commit a622afcb authored by Dirk Hohndel's avatar Dirk Hohndel Committed by Greg Kroah-Hartman
Browse files

Staging: comedi: icp_multi: white space style fixes



no code changes, just fixing white space, line length, etc

Signed-off-by: default avatarDirk Hohndel <hohndel@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 64ca6a7e
Loading
Loading
Loading
Loading
+126 −124
Original line number Original line Diff line number Diff line
@@ -266,7 +266,7 @@ static int icp_multi_insn_read_ai(struct comedi_device *dev,
	devpriv->IntStatus |= ADC_READY;
	devpriv->IntStatus |= ADC_READY;
	writew(devpriv->IntStatus, devpriv->io_addr + ICP_MULTI_INT_STAT);
	writew(devpriv->IntStatus, devpriv->io_addr + ICP_MULTI_INT_STAT);


	/*  Set up appropriate channel, mode and range data, for specified channel */
	/*  Set up appropriate channel, mode and range data, for specified ch */
	setup_channel_list(dev, s, &insn->chanspec, 1);
	setup_channel_list(dev, s, &insn->chanspec, 1);


#ifdef ICP_MULTI_EXTDEBUG
#ifdef ICP_MULTI_EXTDEBUG
@@ -404,7 +404,8 @@ static int icp_multi_insn_write_ao(struct comedi_device *dev,
	writew(devpriv->DacCmdStatus, devpriv->io_addr + ICP_MULTI_DAC_CSR);
	writew(devpriv->DacCmdStatus, devpriv->io_addr + ICP_MULTI_DAC_CSR);


	for (n = 0; n < insn->n; n++) {
	for (n = 0; n < insn->n; n++) {
		/*  Wait for analogue output data register to be ready for new data, or get fed up waiting */
		/*  Wait for analogue output data register to be
		 *  ready for new data, or get fed up waiting */
		timeout = 100;
		timeout = 100;
		while (timeout--) {
		while (timeout--) {
			if (!(readw(devpriv->io_addr +
			if (!(readw(devpriv->io_addr +
@@ -786,7 +787,8 @@ static void setup_channel_list(struct comedi_device *dev,
			chanprog &= 0x000f;
			chanprog &= 0x000f;
		}
		}


		/*  Clear channel, range and input mode bits in A/D command/status register */
		/*  Clear channel, range and input mode bits
		 *  in A/D command/status register */
		devpriv->AdcCmdStatus &= 0xf00f;
		devpriv->AdcCmdStatus &= 0xf00f;


		/*  Set channel number and differential mode status bit */
		/*  Set channel number and differential mode status bit */