diff options
-rw-r--r-- | drivers/staging/comedi/drivers/dmm32at.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c index 9db9a467c8f8..d5cbd515c370 100644 --- a/drivers/staging/comedi/drivers/dmm32at.c +++ b/drivers/staging/comedi/drivers/dmm32at.c | |||
@@ -1048,11 +1048,10 @@ static int dmm32at_dio_insn_config(struct comedi_device *dev, | |||
1048 | * value COMEDI_INPUT or COMEDI_OUTPUT. */ | 1048 | * value COMEDI_INPUT or COMEDI_OUTPUT. */ |
1049 | 1049 | ||
1050 | /* if output clear the bit, otherwise set it */ | 1050 | /* if output clear the bit, otherwise set it */ |
1051 | if (data[0] == COMEDI_OUTPUT) { | 1051 | if (data[0] == COMEDI_OUTPUT) |
1052 | devpriv->dio_config &= ~chanbit; | 1052 | devpriv->dio_config &= ~chanbit; |
1053 | } else { | 1053 | else |
1054 | devpriv->dio_config |= chanbit; | 1054 | devpriv->dio_config |= chanbit; |
1055 | } | ||
1056 | /* get access to the DIO regs */ | 1055 | /* get access to the DIO regs */ |
1057 | dmm_outb(dev, DMM32AT_CNTRL, DMM32AT_DIOACC); | 1056 | dmm_outb(dev, DMM32AT_CNTRL, DMM32AT_DIOACC); |
1058 | /* set the DIO's to the new configuration setting */ | 1057 | /* set the DIO's to the new configuration setting */ |