From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:23:47 +0000 (-0700) Subject: staging: comedi: ni_mio_common: remove some unnecessary boardinfo access X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~685 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47277365195c9722534e1ff3d4c10d36a77858e4;p=pandora-kernel.git staging: comedi: ni_mio_common: remove some unnecessary boardinfo access Currently ni_m_series_ao_config_chanlist() gets the boardinfo pointer in order to get the number of analog output channels. Get this from the comedi_subdevice instead. The ni_old_ao_config_chanlist() function also gets the boardinfo pointer to get the analog output resolution, 'aobits', in order to calculate the value needed to convert samples from unsigned to two's complement for bipolar ranges. Use the comedi_subdevice 'maxdata' instead. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed