/* Get gate source for an '8254' counter subdevice channel.  */
static int dio200_get_gate_src(struct dio200_subdev_8254 *subpriv, unsigned int counter_number)
/* Get gate source for an '8254' counter subdevice channel.  */
static int dio200_get_gate_src(struct dio200_subdev_8254 *subpriv, unsigned int counter_number)
{
	if (!subpriv->has_clk_gat_sce)
		return -1;
	if (counter_number > 2)
		return -1;
	return subpriv->gate_src[counter_number];
}