]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: qup: minor code reorganization for use_dma
authorAbhishek Sahu <absahu@codeaurora.org>
Mon, 12 Mar 2018 13:14:52 +0000 (18:44 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Mar 2018 12:19:17 +0000 (13:19 +0100)
commit8aeca4171286380602e4e437c22ff7927d131501
tree6ee21c02eeccfcaf74d8a2c4ceac28be9a7d3f92
parent07efc23a2c06364dfb8d3b629f4714ea6e458a21
i2c: qup: minor code reorganization for use_dma

1. Assigns use_dma in qup_dev structure itself which will
   help in subsequent patches to determine the mode in IRQ handler.
2. Does minor code reorganization for loops to reduce the
   unnecessary comparison and assignment.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Reviewed-by: Austin Christ <austinwc@codeaurora.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c