plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pm_clock_valid - Check if clock is valid or not
 * @clock_id	Id of the clock to be queried
 *
 * This function is used to check if given clock is valid
 * or not for the chip variant.
 *
 * List of invalid clocks are maintained in array list for
 * different variants.
 *
 * Return: Returns 1 if clock is valid else 0.
 */
Check if clock is valid or not
@clock_id    Id of the clock to be queried

This function is used to check if given clock is valid
or not for the chip variant.

List of invalid clocks are maintained in array list for
different variants.

Returns 1 if clock is valid else 0.
Check if clock is valid or not @clock_id Id of the clock to be queried This function is used to check if given clock is valid or not for the chip variant . List of invalid clocks are maintained in array list for different variants . Returns 1 if clock is valid else 0 .
static bool pm_clock_valid(unsigned int clock_id)
{
	unsigned int i;
	for (i = 0; i < ARRAY_SIZE(pm_clk_invalid_list); i++)
		if (pm_clk_invalid_list[i] == clock_id)
			return 0;
	return 1;
}
static bool pm_clock_valid ( unsigned int clock_id ) { unsigned int i ; for ( i = 0 ; i < ARRAY_SIZE ( pm_clk_invalid_list ) ; i ++ ) if ( pm_clk_invalid_list [ i ] == clock_id ) return 0 ; return 1 ; }
pm_clock_valid - Check if clock is valid or not
 @clock_id    Id of the clock to be queried
pm_clock_valid - Check if clock is valid or not @clock_id Id of the clock to be queried