Thread (20 messages) 20 messages, 5 authors, 2013-06-12

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

From: Andy Shevchenko <hidden>
Date: 2013-06-11 12:39:37
Also in: linux-arm-kernel, linux-mmc, lkml

On Tue, Jun 11, 2013 at 3:37 PM, Andy Shevchenko
[off-list ref] wrote:
On Tue, Jun 11, 2013 at 3:06 PM, Heiko Stübner [off-list ref] wrote:
quoted
Am Dienstag, 11. Juni 2013, 13:51:56 schrieb Andy Shevchenko:
quoted
On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner [off-list ref] wrote:
This variant I think fits:

if (!(divider->flags & CLK_DIVIDER_EVEN))
Oops, without "!()" of course.
  return div < 2 || div % 2 == 0;

You check for feature and do accordingly.

--
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help