i2c: pxa: consolidate i2c_pxa_*xfer() implementations
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 11 May 2020 21:10:27 +0000 (22:10 +0100)
committerWolfram Sang <wsa@kernel.org>
Tue, 12 May 2020 10:32:20 +0000 (12:32 +0200)
commit0f03c08892ac3c42d93662c8dec86bf74e5d4c9b
tree0123d3c13192c0f96edebad071ef2384acfd1cce
parent40e31f0e18475165b7c8582363cbe6a58fdaaca3
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>
drivers/i2c/busses/i2c-pxa.c