summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/Makefile
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-07-11 00:07:24 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-14 08:04:04 +0200
commitbfea711b14630a9c211d29bdabc0a13ceafa26c5 (patch)
tree86b394bdeec4264bf30e0c2381249751b4d46fe7 /drivers/i2c/Makefile
parent239b6559ed5d65cc3e08eae66eb862fefe651e33 (diff)
downloadbarebox-bfea711b14630a9c211d29bdabc0a13ceafa26c5.tar.gz
barebox-bfea711b14630a9c211d29bdabc0a13ceafa26c5.tar.xz
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>
Diffstat (limited to 'drivers/i2c/Makefile')
-rw-r--r--drivers/i2c/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 5ce0324714..648d844252 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -1 +1 @@
-obj-$(CONFIG_I2C) += i2c.o busses/ algos/
+obj-$(CONFIG_I2C) += i2c.o i2c-smbus.o busses/ algos/