Skip to content

Commit

Permalink
i2c: break out smbus support into separate file
Browse files Browse the repository at this point in the history
Break out the exported SMBus functions and the emulation layer into a
separate file. This also involved splitting up the tracing header into
an I2C and an SMBus part.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Wolfram Sang committed May 31, 2017
1 parent e4991ec commit 22c78d1
Show file tree
Hide file tree
Showing 6 changed files with 849 additions and 799 deletions.
3 changes: 3 additions & 0 deletions Documentation/driver-api/i2c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ i2c_adapter devices which don't support those I2C operations.

.. kernel-doc:: drivers/i2c/i2c-core-base.c
:export:

.. kernel-doc:: drivers/i2c/i2c-core-smbus.c
:export:
2 changes: 1 addition & 1 deletion drivers/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o
obj-$(CONFIG_I2C) += i2c-core.o
i2c-core-objs := i2c-core-base.o
i2c-core-objs := i2c-core-base.o i2c-core-smbus.o
i2c-core-$(CONFIG_I2C_SLAVE) += i2c-core-slave.o

obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
Expand Down
Loading

0 comments on commit 22c78d1

Please sign in to comment.