Add new APIS for I2C smbus transaction 52/132052/5
authorHyeongsik Min <hyeongsik.min@samsung.com>
Thu, 1 Jun 2017 02:03:25 +0000 (11:03 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Thu, 1 Jun 2017 05:34:57 +0000 (14:34 +0900)
commit2f1970f3f953dab738bb74e59280c75b2276fbae
tree798c18ac089afcfa3d9e91f3cd2d160c21f92315
parent5fcacebd52d766b89b272887ddf35d864ea31e20
Add new APIS for I2C smbus transaction

This patch support below peripheral-io APIs.
- peripheral_i2c_read_register_byte()
- peripheral_i2c_write_register_byte()
- peripheral_i2c_read_register_word()
- peripheral_i2c_write_register_word()

Below APIs already existed, but they are changed to use SMBUS ioctl in
this patch.
- peripheral_i2c_read_byte()
- peripheral_i2c_write_byte()

Change-Id: Ie22dd237fce9b731c7ecbbd904ec0f5219b005e1
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
src/daemon/peripheral_bus.c
src/daemon/peripheral_bus_i2c.c
src/daemon/peripheral_bus_i2c.h
src/daemon/peripheral_io.xml
src/interface/i2c.c
src/interface/include/i2c.h