OSDN Git Service

staging: comedi: dt2814: Remove struct dt2814_private
authorIan Abbott <abbotti@mev.co.uk>
Mon, 1 Mar 2021 16:57:56 +0000 (16:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:31 +0000 (09:25 +0100)
commit04b2dcca27774655ea96f335c14745b48741e443
tree3dc4237adc9e25f7bc1e662314e6bb95d2b819ab
parent3d7b3101bfeaf6a33e3b4fe4ca08419d057edb5f
staging: comedi: dt2814: Remove struct dt2814_private

The `ntrig` member of the `struct dt2814_private` pointed to by
`dev->private` is no longer used as a counter to determine the end of
acquisition for a Comedi asynchronous command.  The other member
`curadscan` is also unused.  Remove the allocation of the private data
during initialization and remove the definition of `struct
dt2814_private` since they are no longer needed.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20210301165757.243065-6-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2814.c