Commit 326d875d authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7bd0573b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);