diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-04-03 20:38:54 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 21:13:30 (GMT) |
commit | 165f90ed3f56d9031a7b98a0b30f5a9d412a521f (patch) | |
tree | e8b951045827caef764c4b7d5aac9758516f1fd1 | |
parent | 5f8eb72cef685462e1465ce3f317eaac4d93f9bd (diff) | |
download | linux-fsl-qoriq-165f90ed3f56d9031a7b98a0b30f5a9d412a521f.tar.xz |
staging: comedi: dt9812: use comedi provided range_unipolar2_5
Remove the private ranges, dt9812_2pt5_a{in,out}_range, in this
driver and use the comedi provided range_unipolar2_5 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>
-rw-r--r-- | drivers/staging/comedi/drivers/dt9812.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c index 9a0fb0a..9ca3488 100644 --- a/drivers/staging/comedi/drivers/dt9812.c +++ b/drivers/staging/comedi/drivers/dt9812.c @@ -303,16 +303,6 @@ struct slot_dt9812 { struct comedi_dt9812 *comedi; }; -static const struct comedi_lrange dt9812_2pt5_ain_range = { 1, { - UNI_RANGE(2.5), - } -}; - -static const struct comedi_lrange dt9812_2pt5_aout_range = { 1, { - UNI_RANGE(2.5), - } -}; - static struct slot_dt9812 dt9812[DT9812_NUM_SLOTS]; static inline struct usb_dt9812 *to_dt9812_dev(struct kref *d) @@ -907,7 +897,7 @@ static int dt9812_comedi_open(struct comedi_device *dev) break; case 1:{ s->maxdata = 4095; - s->range_table = &dt9812_2pt5_ain_range; + s->range_table = &range_unipolar2_5; } break; } @@ -922,7 +912,7 @@ static int dt9812_comedi_open(struct comedi_device *dev) break; case 1:{ s->maxdata = 4095; - s->range_table = &dt9812_2pt5_aout_range; + s->range_table = &range_unipolar2_5; } break; } |