From: H Hartley Sweeten Date: Thu, 25 Jul 2013 23:09:30 +0000 (-0700) Subject: staging: comedi: usbdux: clarify bipolar ai data in usbduxsub_ai_isoc_irq() X-Git-Tag: v3.12-rc1~183^2~501 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7acf26edbcba808cb6447af893f30c63751938f8;p=pandora-kernel.git staging: comedi: usbdux: clarify bipolar ai data in usbduxsub_ai_isoc_irq() Use the comedi_range_is_bipolar() helper instead of checking the 'range' index against a magic number. Also, use the s->maxdata to calculate the value needed to munge the value for bipolar data instead of the magic number. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed