Commit 7cf24bb4 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: cb_pcidas64: use comedi provided range_bipolar10

Remove the private range, ao_ranges_60xx, in this driver and use
the comedi provided range_bipolar10 instead.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9e7023c
...@@ -543,13 +543,6 @@ static const int ao_range_code_64xx[] = { ...@@ -543,13 +543,6 @@ static const int ao_range_code_64xx[] = {
0x3, 0x3,
}; };
static const struct comedi_lrange ao_ranges_60xx = {
1,
{
BIP_RANGE(10),
}
};
static const int ao_range_code_60xx[] = { static const int ao_range_code_60xx[] = {
0x0, 0x0,
}; };
...@@ -762,7 +755,7 @@ static const struct pcidas64_board pcidas64_boards[] = { ...@@ -762,7 +755,7 @@ static const struct pcidas64_board pcidas64_boards[] = {
.ao_bits = 16, .ao_bits = 16,
.layout = LAYOUT_60XX, .layout = LAYOUT_60XX,
.ai_range_table = &ai_ranges_60xx, .ai_range_table = &ai_ranges_60xx,
.ao_range_table = &ao_ranges_60xx, .ao_range_table = &range_bipolar10,
.ao_range_code = ao_range_code_60xx, .ao_range_code = ao_range_code_60xx,
.ai_fifo = &ai_fifo_60xx, .ai_fifo = &ai_fifo_60xx,
.has_8255 = 0, .has_8255 = 0,
...@@ -777,7 +770,7 @@ static const struct pcidas64_board pcidas64_boards[] = { ...@@ -777,7 +770,7 @@ static const struct pcidas64_board pcidas64_boards[] = {
.ao_scan_speed = 100000, .ao_scan_speed = 100000,
.layout = LAYOUT_60XX, .layout = LAYOUT_60XX,
.ai_range_table = &ai_ranges_60xx, .ai_range_table = &ai_ranges_60xx,
.ao_range_table = &ao_ranges_60xx, .ao_range_table = &range_bipolar10,
.ao_range_code = ao_range_code_60xx, .ao_range_code = ao_range_code_60xx,
.ai_fifo = &ai_fifo_60xx, .ai_fifo = &ai_fifo_60xx,
.has_8255 = 0, .has_8255 = 0,
...@@ -791,7 +784,7 @@ static const struct pcidas64_board pcidas64_boards[] = { ...@@ -791,7 +784,7 @@ static const struct pcidas64_board pcidas64_boards[] = {
.ao_scan_speed = 100000, .ao_scan_speed = 100000,
.layout = LAYOUT_60XX, .layout = LAYOUT_60XX,
.ai_range_table = &ai_ranges_60xx, .ai_range_table = &ai_ranges_60xx,
.ao_range_table = &ao_ranges_60xx, .ao_range_table = &range_bipolar10,
.ao_range_code = ao_range_code_60xx, .ao_range_code = ao_range_code_60xx,
.ai_fifo = &ai_fifo_60xx, .ai_fifo = &ai_fifo_60xx,
.has_8255 = 1, .has_8255 = 1,
...@@ -806,7 +799,7 @@ static const struct pcidas64_board pcidas64_boards[] = { ...@@ -806,7 +799,7 @@ static const struct pcidas64_board pcidas64_boards[] = {
.ao_scan_speed = 100000, .ao_scan_speed = 100000,
.layout = LAYOUT_60XX, .layout = LAYOUT_60XX,
.ai_range_table = &ai_ranges_60xx, .ai_range_table = &ai_ranges_60xx,
.ao_range_table = &ao_ranges_60xx, .ao_range_table = &range_bipolar10,
.ao_range_code = ao_range_code_60xx, .ao_range_code = ao_range_code_60xx,
.ai_fifo = &ai_fifo_60xx, .ai_fifo = &ai_fifo_60xx,
.has_8255 = 1, .has_8255 = 1,
...@@ -885,7 +878,7 @@ static const struct pcidas64_board pcidas64_boards[] = { ...@@ -885,7 +878,7 @@ static const struct pcidas64_board pcidas64_boards[] = {
.ao_scan_speed = 100000, .ao_scan_speed = 100000,
.layout = LAYOUT_60XX, .layout = LAYOUT_60XX,
.ai_range_table = &ai_ranges_60xx, .ai_range_table = &ai_ranges_60xx,
.ao_range_table = &ao_ranges_60xx, .ao_range_table = &range_bipolar10,
.ao_range_code = ao_range_code_60xx, .ao_range_code = ao_range_code_60xx,
.ai_fifo = &ai_fifo_60xx, .ai_fifo = &ai_fifo_60xx,
.has_8255 = 0, .has_8255 = 0,
...@@ -900,7 +893,7 @@ static const struct pcidas64_board pcidas64_boards[] = { ...@@ -900,7 +893,7 @@ static const struct pcidas64_board pcidas64_boards[] = {
.ao_scan_speed = 100000, .ao_scan_speed = 100000,
.layout = LAYOUT_60XX, .layout = LAYOUT_60XX,
.ai_range_table = &ai_ranges_60xx, .ai_range_table = &ai_ranges_60xx,
.ao_range_table = &ao_ranges_60xx, .ao_range_table = &range_bipolar10,
.ao_range_code = ao_range_code_60xx, .ao_range_code = ao_range_code_60xx,
.ai_fifo = &ai_fifo_60xx, .ai_fifo = &ai_fifo_60xx,
.has_8255 = 0, .has_8255 = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment