Commit 8f210c0c authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d719c9c
Loading
Loading
Loading
Loading
+1 −11
Original line number Original line Diff line number Diff line
@@ -115,16 +115,6 @@
 */
 */
#define NUMOFINBUFFERSHIGH	10
#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
 * min delay steps for more than one channel
 * basically when the mux gives up ;-)
 * basically when the mux gives up ;-)
@@ -1295,7 +1285,7 @@ static int usbduxfast_attach_common(struct comedi_device *dev)
	}
	}


	/* Analog Input subdevice */
	/* Analog Input subdevice */
	s = &dev->subdevices[SUBDEV_AD];
	s = &dev->subdevices[0];
	dev->read_subdev = s;
	dev->read_subdev = s;
	s->type		= COMEDI_SUBD_AI;
	s->type		= COMEDI_SUBD_AI;
	s->subdev_flags	= SDF_READABLE | SDF_GROUND | SDF_CMD_READ;
	s->subdev_flags	= SDF_READABLE | SDF_GROUND | SDF_CMD_READ;