diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-09-20 23:43:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 23:00:00 (GMT) |
commit | 326d875da33b2b72e409868681c76d6863fd191b (patch) | |
tree | 0561b23409b7dea5c9a2b8c254be34d200ce3dd0 | |
parent | 7bd0573bec697902db98c39d2934270c009b57ef (diff) | |
download | linux-fsl-qoriq-326d875da33b2b72e409868681c76d6863fd191b.tar.xz |
staging: comedi: pcl711: remove 'i8253_osc_base'
This static const int variable is only used one place in the code.
Remove it and just open code the value.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/pcl711.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/pcl711.c b/drivers/staging/comedi/drivers/pcl711.c index 8aa7b0e1..8f068eb 100644 --- a/drivers/staging/comedi/drivers/pcl711.c +++ b/drivers/staging/comedi/drivers/pcl711.c @@ -134,8 +134,6 @@ static const struct comedi_lrange range_acl8112dg_ai = { } }; -static const int i8253_osc_base = 500; /* 2 Mhz */ - struct pcl711_board { const char *name; int n_aichan; @@ -378,7 +376,8 @@ static int pcl711_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) if (cmd->scan_begin_src == TRIG_TIMER) { timer1 = timer2 = 0; - i8253_cascade_ns_to_timer(i8253_osc_base, &timer1, &timer2, + i8253_cascade_ns_to_timer(500, /* 2 Mhz */ + &timer1, &timer2, &cmd->scan_begin_arg, TRIG_ROUND_NEAREST); |