On 02/11, Michael Turquette wrote:
> +int of_clk_mark_if_critical(struct device_node *np,
> +                                       int index, unsigned long *flags)
> +{
> +     struct property *prop;
> +     const __be32 *cur;
> +     uint32_t idx;
> +
> +     if (!np || !flags)
> +             return -EINVAL;
> +
> +     of_property_for_each_u32(np, "clock-critical", prop, cur, idx)
> +             if (index == idx)
> +                     *flags |= CLK_IS_CRITICAL;
> +
> +     return 0;
> +}

I hope we don't have to export this to modules...

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Reply via email to