From: H Hartley Sweeten Date: Fri, 17 Aug 2012 02:52:30 +0000 (-0700) Subject: staging: comedi: cb_pcimdda: remove ao_chans and ao_bits from boardinfo X-Git-Tag: firefly_0821_release~3680^2~1977^2~873 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=accff3509e947a4c1f7c88aec7e41d14f6c6f51e;p=firefly-linux-kernel-4.4.55.git staging: comedi: cb_pcimdda: remove ao_chans and ao_bits from boardinfo This board always has 6, 16-bit analog outputs. There is no need to carry this information in the boardinfo. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/cb_pcimdda.c b/drivers/staging/comedi/drivers/cb_pcimdda.c index 0e346035d070..82fb5f6ff70e 100644 --- a/drivers/staging/comedi/drivers/cb_pcimdda.c +++ b/drivers/staging/comedi/drivers/cb_pcimdda.c @@ -105,16 +105,12 @@ Configuration Options: struct cb_pcimdda_board { const char *name; unsigned short device_id; - int ao_chans; - int ao_bits; }; static const struct cb_pcimdda_board cb_pcimdda_boards[] = { { .name = "cb_pcimdda06-16", .device_id = PCI_ID_PCIM_DDA06_16, - .ao_chans = 6, - .ao_bits = 16, } }; @@ -258,8 +254,8 @@ static int cb_pcimdda_attach(struct comedi_device *dev, /* analog output subdevice */ s->type = COMEDI_SUBD_AO; s->subdev_flags = SDF_WRITABLE | SDF_READABLE; - s->n_chan = thisboard->ao_chans; - s->maxdata = (1 << thisboard->ao_bits) - 1; + s->n_chan = 6; + s->maxdata = 0xffff; /* this is hard-coded here */ if (it->options[2]) s->range_table = &range_bipolar10;