Skip to content

Commit

Permalink
staging: comedi: ni_pcimio: use comedi provided range_bipolar10
Browse files Browse the repository at this point in the history
Remove the private range, range_ni_M_622x_ao, in this driver and use
the comedi provided range_bipolar10 instead.

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 Apr 5, 2013
1 parent 165f90e commit a4f6d9c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions drivers/staging/comedi/drivers/ni_pcimio.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ static const struct comedi_lrange range_ni_M_625x_ao = { 3, {
}
};

static const struct comedi_lrange range_ni_M_622x_ao = { 1, {
RANGE(-10, 10),
}
};

enum ni_pcimio_boardid {
BOARD_PCIMIO_16XE_50,
BOARD_PCIMIO_16XE_10,
Expand Down Expand Up @@ -760,7 +755,7 @@ static const struct ni_board_struct ni_boards[] = {
.n_aochan = 2,
.aobits = 16,
.ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_622x_ao,
.ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x,
.ao_speed = 1200,
.num_p0_dio_channels = 8,
Expand All @@ -776,7 +771,7 @@ static const struct ni_board_struct ni_boards[] = {
.n_aochan = 2,
.aobits = 16,
.ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_622x_ao,
.ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x,
.ao_speed = 1200,
.num_p0_dio_channels = 8,
Expand Down Expand Up @@ -814,7 +809,7 @@ static const struct ni_board_struct ni_boards[] = {
.n_aochan = 2,
.aobits = 16,
.ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_622x_ao,
.ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x,
.ao_speed = 1200,
.num_p0_dio_channels = 32,
Expand All @@ -830,7 +825,7 @@ static const struct ni_board_struct ni_boards[] = {
.n_aochan = 2,
.aobits = 16,
.ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_622x_ao,
.ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x,
.ao_speed = 1200,
.num_p0_dio_channels = 32,
Expand All @@ -846,7 +841,7 @@ static const struct ni_board_struct ni_boards[] = {
.n_aochan = 4,
.aobits = 16,
.ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_622x_ao,
.ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x,
.ao_speed = 1200,
.num_p0_dio_channels = 32,
Expand Down

0 comments on commit a4f6d9c

Please sign in to comment.