/* Get clock source for an '8254' counter subdevice channel.  */
static int dio200_get_clock_src(struct dio200_subdev_8254 *subpriv, unsigned int counter_number, unsigned int *period_ns)
/* Get clock source for an '8254' counter subdevice channel.  */
static int dio200_get_clock_src(struct dio200_subdev_8254 *subpriv, unsigned int counter_number, unsigned int *period_ns)
{
	unsigned clock_src;
	if (!subpriv->has_clk_gat_sce)
		return -1;
	if (counter_number > 2)
		return -1;
	clock_src = subpriv->clock_src[counter_number];
	*period_ns = clock_period[clock_src];
	return clock_src;
}