]> 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)
commit27d51f979ea39df04e01dc0c944e6c0d135c19fa
tree4d99d6758de6c28edd48f172d727527ce676e864
parent98bade63c5f08a974a870d79ae3cbbc09a8dca59
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