> +     for (i = 0; i < count; i++) {
> +             u32 val;
> +
> +             of_property_read_u32_index(dev->of_node,
> +                                        "realtek,led-modes", i, &val);

Please validate the value, 0 - 7.

       Andrew

Reply via email to