On 16/01/13 00:56, Mike Turquette wrote:
> Quoting Joe Perches (2013-01-15 10:31:05)
>> On Tue, 2013-01-15 at 10:28 +, James Hogan wrote:
>>> The macro is_power_of_two() in clk-divider.c was defined as !(i & ~i)
>>> which is always true. Correct it to !(i & (i - 1)).
>> []
>>> diff --git a/driv
Quoting Joe Perches (2013-01-15 10:31:05)
> On Tue, 2013-01-15 at 10:28 +, James Hogan wrote:
> > The macro is_power_of_two() in clk-divider.c was defined as !(i & ~i)
> > which is always true. Correct it to !(i & (i - 1)).
> []
> > diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divid
On Tue, 2013-01-15 at 10:28 +, James Hogan wrote:
> The macro is_power_of_two() in clk-divider.c was defined as !(i & ~i)
> which is always true. Correct it to !(i & (i - 1)).
[]
> diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c
[]
> @@ -29,8 +29,8 @@
[]
> -#define div_mask(d
The macro is_power_of_two() in clk-divider.c was defined as !(i & ~i)
which is always true. Correct it to !(i & (i - 1)).
Also add brackets around the macro arguments in div_mask and
is_power_of_two, as well as around the is_power_of_two expression as a
whole to avoid any future operator precedenc
4 matches
Mail list logo