FreeBSD/sys/dev/extres/clk/clk.c
/*
 * Set parent index - init function.
 */
Set parent index - init function.
Set parent index - init function .
void
clknode_init_parent_idx(struct clknode *clknode, int idx)
{
	if (clknode->parent_cnt == 0) {
		clknode->parent_idx = CLKNODE_IDX_NONE;
		clknode->parent = NULL;
		return;
	}
	if ((idx == CLKNODE_IDX_NONE) ||
	    (idx >= clknode->parent_cnt) ||
	    (clknode->parent_names[idx] == NULL))
		panic("%s: Invalid clock parent index: %d\n", __func__, idx);
	clknode->parent_idx = idx;
}
void clknode_init_parent_idx ( struct clknode * clknode , int idx ) { if ( clknode -> parent_cnt == 0 ) { clknode -> parent_idx = CLKNODE_IDX_NONE ; clknode -> parent = NULL ; return ; } if ( ( idx == CLKNODE_IDX_NONE ) || ( idx >= clknode -> parent_cnt ) || ( clknode -> parent_names [ idx ] == NULL ) ) panic ( " \n " , __func__ , idx ) ; clknode -> parent_idx = idx ; }
Set parent index - init function.
Set parent index - init function .