From: Ian Abbott Date: Mon, 1 Sep 2014 11:03:44 +0000 (+0100) Subject: staging: comedi: amplc_pci230: remove ao_chans member X-Git-Tag: fixes-for-v3.18-merge-window~15^2~822 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=867ae76dda9365c125ac88f256ca20d557e9e6e8;p=pandora-kernel.git staging: comedi: amplc_pci230: remove ao_chans member The PCI230(+) has an AO subdevice with 2 channels, but the PCI260(+) has none. The `ao_chans` member of `struct pci230_board` indicates whether the board has an AO subdevice and the number of AO channels. The `ao_bits` member indicates the AO sample width in bits and will only be non-zero for boards with an AO subdevice. Use `ao_bits` to indicate whether the board has an AO subdevice. If it has, assume the the number of AO channels is 2. Then the `ao_chans` member becomes redundant and can be removed. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed