]> Pileus Git - ~andy/linux/commit
staging: comedi: s526: remove struct s526GPCTConfig
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 22:12:54 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:19:44 +0000 (09:19 -0700)
commit675f98f101fb6d1a694a03961b36997cb407dfae
treeb409693b5f52a0f1cdcff0682fe184f7f7ac447c
parent5c813bb100431eff1f78d75682ae1fe2d30744b4
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s526.c