diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-02-24 14:32:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-24 17:43:34 +0300 |
commit | 341c7dc7c074e80d7344e0d75e2b8918ffc982fb (patch) | |
tree | 0ecbe7107f54a5dd6efcfe6dd93bfb6e9f107d09 /drivers/spi/spi-dw.h | |
parent | ea11370fffdfedbd0cca0fce17907d2c993246bc (diff) | |
download | linux-341c7dc7c074e80d7344e0d75e2b8918ffc982fb.tar.xz |
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 'drivers/spi/spi-dw.h')
0 files changed, 0 insertions, 0 deletions