commit | 0f03c08892ac3c42d93662c8dec86bf74e5d4c9b | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Mon May 11 22:10:27 2020 +0100 |
committer | Wolfram Sang <wsa@kernel.org> | Tue May 12 12:32:20 2020 +0200 |
tree | 0123d3c13192c0f96edebad071ef2384acfd1cce | |
parent | 40e31f0e18475165b7c8582363cbe6a58fdaaca3 [diff] |
i2c: pxa: consolidate i2c_pxa_*xfer() implementations Most of i2c_pxa_pio_xfer() and i2c_pxa_xfer() are identical; the only differences are that i2c_pxa_pio_xfer() may reset the bus, and they use different underlying transfer functions. The retry loop is the same. Consolidate these two functions. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Wolfram Sang <wsa@kernel.org>