Commit 418c9713 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: mf6x4: remove unnecassary masking of digital outputs

THe 's->state' will always be in range for the 8 digital outputs.
Remove the unnecessary masking of the value.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
 drivers/staging/comedi/drivers/mf6x4.c | 6 +++---
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 59706334
...@@ -43,8 +43,7 @@ ...@@ -43,8 +43,7 @@
#define MF6X4_ADCTRL_CHAN(x) BIT(chan) #define MF6X4_ADCTRL_CHAN(x) BIT(chan)
#define MF6X4_DIN_R 0x10 #define MF6X4_DIN_R 0x10
#define MF6X4_DIN_M 0xff #define MF6X4_DIN_M 0xff
#define MF6X4_DOUT_R 0x10 #define MF6X4_DOUT_REG 0x10
#define MF6X4_DOUT_M 0xff
#define MF6X4_ADSTART_R 0x20 #define MF6X4_ADSTART_R 0x20
#define MF6X4_DAC_R(x) (0x20 + ((x) * 2)) #define MF6X4_DAC_R(x) (0x20 + ((x) * 2))
...@@ -107,7 +106,7 @@ static int mf6x4_do_insn_bits(struct comedi_device *dev, ...@@ -107,7 +106,7 @@ static int mf6x4_do_insn_bits(struct comedi_device *dev,
unsigned int *data) unsigned int *data)
{ {
if (comedi_dio_update_state(s, data)) if (comedi_dio_update_state(s, data))
iowrite16(s->state & MF6X4_DOUT_M, dev->mmio + MF6X4_DOUT_R); iowrite16(s->state, dev->mmio + MF6X4_DOUT_REG);
data[1] = s->state; data[1] = s->state;
......
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