From: H Hartley Sweeten Date: Wed, 19 Sep 2012 22:12:54 +0000 (-0700) Subject: staging: comedi: s526: remove struct s526GPCTConfig X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=675f98f101fb6d1a694a03961b36997cb407dfae;p=pandora-kernel.git staging: comedi: s526: remove struct s526GPCTConfig The enum in this struct is used by the driver to know how the gpct channels have been configured. Instead of using the private enum S526_GPCT_APP_CLASS, we can just use the INSN_CONFIG_* value that was passed in data[0] to the s526_gpct_insn_config(). The data array in this struct in never used. It actually could cause a BUG since it assumes that the data pointer passed to s526_gpct_insn_config() always has 6 values but the comments indicate that there are really only 4 or 5. Remove the s526GPCTConfig struct and associated S526_GPCT_APP_CLASS enum and just use and unsigned int array in the private data to hold the gpct configuration. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed