Skip to content

Commit

Permalink
staging: comedi: vmk80xx: cleanup the comedi_lrange tables
Browse files Browse the repository at this point in the history
The vmk8055_range table is a duplicate of the comedi core provided
range_unipolar5 table. Use that instead.

For aesthetic reasons, clean up the formating of the vmk8061_range
table.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent 4c56a2b commit f45787c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/staging/comedi/drivers/vmk80xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ struct firmware_version {
unsigned char ic6_vers[32]; /* CPU */
};

static const struct comedi_lrange vmk8055_range = {
1, {UNI_RANGE(5)}
};

static const struct comedi_lrange vmk8061_range = {
2, {UNI_RANGE(5), UNI_RANGE(10)}
2, {
UNI_RANGE(5),
UNI_RANGE(10)
}
};

struct vmk80xx_board {
Expand All @@ -158,7 +157,7 @@ static const struct vmk80xx_board vmk80xx_boardinfo[] = {
[DEVICE_VMK8055] = {
.name = "K8055 (VM110)",
.model = VMK8055_MODEL,
.range = &vmk8055_range,
.range = &range_unipolar5,
.ai_nchans = 2,
.ai_maxdata = 0x00ff,
.ao_nchans = 2,
Expand Down

0 comments on commit f45787c

Please sign in to comment.