/* Convert the given cycle time into the divisor to use to obtain it from HCLK.  */
static unsigned int to_div(unsigned int cyc, unsigned int hclk_tns)
/* Convert the given cycle time into the divisor to use to obtain it from HCLK.  */
static unsigned int to_div(unsigned int cyc, unsigned int hclk_tns)
{
	if (cyc == 0)
		return 0;
	return DIV_ROUND_UP(cyc, hclk_tns);
}