]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i2c-qcom-geni: Simplify tx/rx functions
authorStephen Boyd <swboyd@chromium.org>
Mon, 24 Sep 2018 23:52:34 +0000 (16:52 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 11 Oct 2018 21:09:20 +0000 (23:09 +0200)
commitd7f2f9a2ad1ec436534533f46aa5f8348bb5a0c7
tree4d99d6758de6c28edd48f172d727527ce676e864
parent2e41f77e76e5d80a45c60c29829bb54874760245
i2c: i2c-qcom-geni: Simplify tx/rx functions

We never really look at the 'ret' local variable in these functions, so
let's remove it to make way for shorter and simpler code. Furthermore,
we can shorten some lines by adding two local variables for the SE and
the message length so that everything fits in 80 columns and testing the
'dma_buf' local variable in lieu of the 'mode' local variable.  And
kernel style is to leave the return statement by itself, detached from
the rest of the function.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Alok Chauhan <alokc@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qcom-geni.c