From: H Hartley Sweeten Date: Tue, 14 Oct 2014 17:44:40 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: remove boardinfo 'i_DoMaxdata' X-Git-Tag: v5.15~16669^2~838 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73fc3c6c0516754c8b1ce5f8c0dcc54e0d37a9f0;p=platform%2Fkernel%2Flinux-starfive.git staging: comedi: addi_apci_3120: remove boardinfo 'i_DoMaxdata' The maxdata for a Digital Output subdevice is always '1'. Remove this incorrect boardinfo. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_3120.c b/drivers/staging/comedi/drivers/addi_apci_3120.c index ae81fdb..9f5d7a5 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3120.c +++ b/drivers/staging/comedi/drivers/addi_apci_3120.c @@ -24,7 +24,6 @@ struct apci3120_board { int i_AoMaxdata; int i_NbrDiChannel; int i_NbrDoChannel; - int i_DoMaxdata; }; static const struct apci3120_board apci3120_boardtypes[] = { @@ -38,7 +37,6 @@ static const struct apci3120_board apci3120_boardtypes[] = { .i_AoMaxdata = 0x3fff, .i_NbrDiChannel = 4, .i_NbrDoChannel = 4, - .i_DoMaxdata = 0x0f, }, [BOARD_APCI3001] = { .name = "apci3001", @@ -48,7 +46,6 @@ static const struct apci3120_board apci3120_boardtypes[] = { .i_AiMaxdata = 0xfff, .i_NbrDiChannel = 4, .i_NbrDoChannel = 4, - .i_DoMaxdata = 0x0f, }, }; @@ -166,7 +163,7 @@ static int apci3120_auto_attach(struct comedi_device *dev, s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND | SDF_COMMON; s->n_chan = this_board->i_NbrDoChannel; - s->maxdata = this_board->i_DoMaxdata; + s->maxdata = 1; s->len_chanlist = this_board->i_NbrDoChannel; s->range_table = &range_digital; s->insn_bits = apci3120_do_insn_bits;