From: H Hartley Sweeten Date: Tue, 9 Apr 2013 01:17:43 +0000 (-0700) Subject: staging: comedi: rti800: use arrays to hold the ai/ao ranges X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~201 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=630a334b430fc4b4e13f9ddb5f7ddc42c45789d9;p=pandora-kernel.git staging: comedi: rti800: use arrays to hold the ai/ao ranges The analog in/analog out ranges are selected by the user using options passed during the legacy attach. Put the valid ranges into arrays and use those instead of the switch () statements when initializing the subdevice range information. If the passed user option is not valid, set the range information to range_unknown. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed