From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:12:52 +0000 (-0700) Subject: staging: comedi: dt282x: remove the 'opt_*' enum X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1533 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b987b4d35c37cf973c30871fc42b16c6272041;p=pandora-kernel.git staging: comedi: dt282x: remove the 'opt_*' enum This enum is used to index the 'options' values that are passed by the user attaches to the driver. These options are identified in the comedi comment block. For aesthetics, remove the enum and just open code the index values. Refactor the Analog Input subdevice init so that the it->options[4], indicating differential inputs, does not have to be checked multiple times. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed