summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/ni_labpc.h
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-05-13 17:07:24 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-16 16:03:44 -0700
commit5e763f7bd9fea0027e246e6c2cee291566a390a9 (patch)
treec2522483be07750af707feb9385fd17dc6947958 /drivers/staging/comedi/drivers/ni_labpc.h
parent867143804929cc6ef18946143116ae6849cb6ae8 (diff)
staging: comedi: ni_labpc: remove *_ai_gain_bits tables
The bits needed to set the analog input gain can be simply calculated based on the 'range'. The LabPC versions of the board do not have the '0x10' gain that the LabPC+ board supports. By incrementing the range appropriately the correct gain bits can still be calculated. This allows removing the two gain tables, as well as the export, along with the 'ai_range_code' data in the boardinfo. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/ni_labpc.h')
-rw-r--r--drivers/staging/comedi/drivers/ni_labpc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/ni_labpc.h b/drivers/staging/comedi/drivers/ni_labpc.h
index a96d6ac4dd46..2cb407be93b7 100644
--- a/drivers/staging/comedi/drivers/ni_labpc.h
+++ b/drivers/staging/comedi/drivers/ni_labpc.h
@@ -28,7 +28,6 @@ enum transfer_type { fifo_not_empty_transfer, fifo_half_full_transfer,
struct labpc_boardinfo {
const char *name;
- const int *ai_range_code;
int ai_speed; /* maximum input speed in ns */
unsigned ai_scan_up:1; /* can auto scan up in ai channels */
unsigned has_ao:1; /* has analog outputs */
@@ -88,6 +87,4 @@ int labpc_common_attach(struct comedi_device *dev,
unsigned int irq, unsigned long isr_flags);
void labpc_common_detach(struct comedi_device *dev);
-extern const int labpc_1200_ai_gain_bits[];
-
#endif /* _NI_LABPC_H */