]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit967b44d6962f3f2859d900a1f1d2e0365429fa14
treedff4b3b8c54c27ed760084ffaa762bbdcd497bfe
parentf3cc076f2a3f05a5f2d6034c3bff3c2eff32fd35
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