On Mon, 2014-04-21 at 05:32 +0300, Siarhei Siamashka wrote:
> +     if (clk >= 540 && clk < 552) {

If you wanted I think you could replace this if/else tree with
        switch (clk) {
        case 540 ... 551:
                /*stuff*/
        case 512 ... 527:
                /*stuff*/
        case etc...

up to you if you think that is nicer or not.
Ian.


-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to