From: Ian Abbott Date: Mon, 1 Sep 2014 11:03:51 +0000 (+0100) Subject: staging: comedi: amplc_pci230: use comedi_range_is_bipolar() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~815 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cd5da05b0ea4bf178fab718d42de5a386600991;p=pandora-kernel.git staging: comedi: amplc_pci230: use comedi_range_is_bipolar() Use the inline `comedi_range_is_bipolar()` function from "comedidev.h" to decide whether a range is bipolar or unipolar instead of using the local static arrays `pci230_ai_bipolar[]` and `pci230_ao_bipolar[]` which can then be removed. Change the types of the `ai_bipolar` and `ao_bipolar` members of `struct pci230_private` to `bool` to match the return value of `comedi_range_is_bipolar()` and change them into single-bit bitfields to save a bit of space. Also change the type and name of some local variables in `pci230_ai_check_chanlist()` that hold the result of `comedi_range_is_bipolar()`. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed