diff options
author | 2013-01-15 10:28:05 +0000 | |
---|---|---|
committer | 2013-01-18 09:44:02 -0800 | |
commit | 1a3cd18475a98b9587a181b8d8ebc7f5cdedb4b0 (patch) | |
tree | db36a48d590afc10d2c2752ec2190ddb0dcaf560 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | clk: prima2: enable dt-binding clkdev mapping (diff) | |
download | linux-dev-1a3cd18475a98b9587a181b8d8ebc7f5cdedb4b0.tar.xz linux-dev-1a3cd18475a98b9587a181b8d8ebc7f5cdedb4b0.zip |
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]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions