James Hogan 1a3cd18475 clk-divider: fix macros
The macro is_power_of_two() in clk-divider.c was defined as !(i & ~i)
which is always true.  Instead use is_power_of_2() from log2.h.

Also add brackets around the macro arguments in div_mask to avoid any
future operator precedence problems.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: use log2.h per Joe Perches; update changelog]
2013-01-18 09:44:02 -08:00
..
2013-01-15 16:16:27 -08:00
2013-01-18 09:44:02 -08:00
2012-07-11 17:58:47 -07:00
2012-08-31 11:05:18 -07:00
2012-07-11 15:36:45 -07:00
2012-12-11 13:13:55 -08:00
2013-01-11 19:49:23 -08:00