OSDN Git Service

i2c: pxa: migrate to new i2c_slave APIs
authorPatrick Williams <alpawi@amazon.com>
Tue, 1 Oct 2019 15:59:59 +0000 (10:59 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 11 Nov 2019 20:38:09 +0000 (21:38 +0100)
commit4d51b4cea21831422614366de4e929701846d801
treedff4b3b8c54c27ed760084ffaa762bbdcd497bfe
parent9af1563a54865a2973d4c0cbeaa95809cf4b14e0
i2c: pxa: migrate to new i2c_slave APIs

The i2c subsystem was enhanced circa 2015 to support operating as
an i2c-slave device.  Prior to that, the i2c-pxa driver supported
an i2c-slave but had its own APIs.  There are no existing in-kernel
drivers or platforms that utilize the i2c-pxa APIs.

Migrate the i2c-pxa driver to the general i2c-slave APIs so that
existing drivers, such as the i2c-slave-eeprom, can be used.

This has been tested with a Marvell EspressoBin, using i2c-pxa and
i2c-slave-eeprom, acting as a slave, and a RaspeberryPi 3, using the
at24 driver, acting as a master.

Signed-off-by: Patrick Williams <alpawi@amazon.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-pxa.c