]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdba7d08a447796281cd7b5eff6a97b777344ec64
tree0123d3c13192c0f96edebad071ef2384acfd1cce
parente8d33b67b4bae2189415b6f64d480759bda4eaa9
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