]> asedeno.scripts.mit.edu Git - linux.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)
commit6d5f37f166bb07b04b4d42e9d1f5427b7931cd3c
tree7323f6e31848b6e14f67498155292232e71cecf1
parenteb422b539c1f39faf576826b54be93e84d9cb32a
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