aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-02-24 13:32:12 +0200
committerMark Brown <broonie@kernel.org>2015-02-24 23:43:34 +0900
commit341c7dc7c074e80d7344e0d75e2b8918ffc982fb (patch)
tree0ecbe7107f54a5dd6efcfe6dd93bfb6e9f107d09 /tools/perf/scripts/python
parentspi: dw: get TX level without an additional variable (diff)
downloadlinux-341c7dc7c074e80d7344e0d75e2b8918ffc982fb.tar.gz
linux-341c7dc7c074e80d7344e0d75e2b8918ffc982fb.zip
spi: dw: refactor code that handles clk_div
This patch does the following changes: a) the calculation of clk_div is simplified to oneliner; b) chip->clk_div is updated if clk_div is not zero, therefore the condition is simplified by using chip->clk_div in both cases; c) while here, the redundant parentheses are removed. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions