9
0
Fork 0
barebox/include/i2c
Antony Pavlov bfea711b14 i2c: import SMBus stuff from linux
This patch imports i2c_smbus_{read,write}* functions from linux-3.15.

Here is a quote from linux.git/Documentation/i2c/smbus-protocol:

    If you write a driver for some I2C device, please try to use the SMBus
    commands if at all possible (if the device uses only that subset of the
    I2C protocol). This makes it possible to use the device driver on both
    SMBus adapters and I2C adapters (the SMBus command set is automatically
    translated to I2C on I2C adapters, but plain I2C commands can not be
    handled at all on most pure SMBus adapters).

So having i2c_smbus_{read,write}* functions in barebox makes
porting of linux i2c client drivers much easier as many drivers rely on
these smbus functions.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-14 08:04:04 +02:00
..
at24.h eeprom: add at24 support 2012-11-15 20:18:50 +01:00
i2c-algo-bit.h i2c: add i2c algo bit support 2012-11-15 08:34:53 +01:00
i2c-gpio.h i2c: add i2c-gpio support 2012-11-15 08:34:53 +01:00
i2c.h i2c: import SMBus stuff from linux 2014-07-14 08:04:04 +02:00