diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-05-14 20:30:30 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 23:24:21 (GMT) |
commit | 8f210c0cc3967452db2b98e94b20ef4ab38e6966 (patch) | |
tree | e8512e68ef4ba5ef2acf34428d67507abfe5a30d | |
parent | 2d719c9cdbb08e90a090145c4ceacc1dbd6d869a (diff) | |
download | linux-fsl-qoriq-8f210c0cc3967452db2b98e94b20ef4ab38e6966.tar.xz |
staging: comedi: usbduxfast: remove some unused defines
Now that the private data is kzalloc'ed when the device is attached,
the NUMUSBDUXFAST define is not used. Remove it.
The SUBDEV_AD define is only used when setting up the subdevice.
Remove it and just open-code the value.
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>
-rw-r--r-- | drivers/staging/comedi/drivers/usbduxfast.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 9f6a0e9..31993e0 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -116,16 +116,6 @@ #define NUMOFINBUFFERSHIGH 10 /* - * total number of usbduxfast devices - */ -#define NUMUSBDUXFAST 16 - -/* - * analogue in subdevice - */ -#define SUBDEV_AD 0 - -/* * min delay steps for more than one channel * basically when the mux gives up ;-) * @@ -1295,7 +1285,7 @@ static int usbduxfast_attach_common(struct comedi_device *dev) } /* Analog Input subdevice */ - s = &dev->subdevices[SUBDEV_AD]; + s = &dev->subdevices[0]; dev->read_subdev = s; s->type = COMEDI_SUBD_AI; s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_CMD_READ; |