]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: qup: remove redundant variables for BAM SG count
authorAbhishek Sahu <absahu@codeaurora.org>
Mon, 12 Mar 2018 13:14:53 +0000 (18:44 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Mar 2018 12:19:28 +0000 (13:19 +0100)
commit15088887f6df9488d385278e882519e18fb8ac43
tree7323f6e31848b6e14f67498155292232e71cecf1
parent8aeca4171286380602e4e437c22ff7927d131501
i2c: qup: remove redundant variables for BAM SG count

The rx_nents and tx_nents are redundant. rx_buf and tx_buf can
be used for total number of SG entries. Since rx_buf and tx_buf
give the impression that it is buffer instead of count so rename
it to tx_cnt and rx_cnt for giving it more meaningful variable
name.

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