mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 17:43:56 +08:00
staging: comedi: dt2811: remove private data
The remaining members of the private data are not used by the driver. Remove it and the allocation. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7c9574090d
commit
acd356f9fc
@ -181,11 +181,6 @@ struct dt2811_board {
|
||||
|
||||
enum { card_2811_pgh, card_2811_pgl };
|
||||
|
||||
struct dt2811_private {
|
||||
int ntrig;
|
||||
int curadchan;
|
||||
};
|
||||
|
||||
static int dt2811_ai_eoc(struct comedi_device *dev,
|
||||
struct comedi_subdevice *s,
|
||||
struct comedi_insn *insn,
|
||||
@ -274,7 +269,6 @@ static int dt2811_do_insn_bits(struct comedi_device *dev,
|
||||
static int dt2811_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
const struct dt2811_board *board = dev->board_ptr;
|
||||
struct dt2811_private *devpriv;
|
||||
struct comedi_subdevice *s;
|
||||
int ret;
|
||||
|
||||
@ -286,10 +280,6 @@ static int dt2811_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
devpriv = comedi_alloc_devpriv(dev, sizeof(*devpriv));
|
||||
if (!devpriv)
|
||||
return -ENOMEM;
|
||||
|
||||
s = &dev->subdevices[0];
|
||||
/* initialize the ADC subdevice */
|
||||
s->type = COMEDI_SUBD_AI;
|
||||
|
Loading…
Reference in New Issue
Block a user