staging: comedi: pcl711: remove 'i8253_osc_base'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 20 Sep 2013 23:43:47 +0000 (16:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:00:00 +0000 (16:00 -0700)
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>
drivers/staging/comedi/drivers/pcl711.c

index 8aa7b0e182c07bec97c47f11e5f56f5e7959c82d..8f068ebc7609a05ad5adb146657091a2f206df32 100644 (file)
@@ -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);