On Friday, April 18, 2014 at 08:05:42 PM, Ian Campbell wrote:
[...]
> +static ulong read_timer(void)
> +{
> + struct sunxi_timer_reg *timers =
> + (struct sunxi_timer_reg *)SUNXI_TIMER_BASE;
> + struct sunxi_timer *timer = &timers->timer[TIMER_NUM];
> + /* The hardware timer counts down, therefore we invert to
> + * produce an incrementing timer. */
This comment doesn't follow coding style.
> + return ~readl(&timer->val);
> +}
[...]
Best regards,
Marek Vasut
--
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.