Skip to content

Move OF i2c functions into i2c core

Rob Herring linux-devicetree linux-i2c linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i2c: move of_i2c_register_devices call into coredrivers/i2c/busses/i2c-cpm.c drivers/i2c/busses/i2c-ibm_iic.c drivers/i2c/busses/i2c-mpc.c +3 more+4 -173 replies
2/3i2c: move OF i2c related functions into i2c corearch/powerpc/platforms/44x/warp.c drivers/i2c/i2c-core.c drivers/of/Makefile +3 more+87 -1313 replies
3/3i2c-designware: add OF binding supportDocumentation/devicetree/bindings/i2c/dw-i2c.txt drivers/i2c/busses/i2c-designware.c+31 -01 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchGrant Likely
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Move OF i2c functions into i2c core

From: Rob Herring <rob.herring-bsGFqQB8/[email protected]>

As suggested by Grant, this series moves OF i2c functions in of_i2c.c into i2c-core.c. This simplifies OF i2c drivers slightly. Combining the functions is necessary to avoid a module circular dependency between i2c-core.ko and of_i2c.ko.

Compile tested on ARM (DT/non-DT VExpress) and PowerPC (8xxx and 44x).

Rob

Rob Herring (3):
i2c: move of_i2c_register_devices call into core
i2c: move OF i2c related functions into i2c core
i2c-designware: add OF binding support

 Documentation/devicetree/bindings/i2c/dw-i2c.txt |   23 +++++
 arch/powerpc/platforms/44x/warp.c                |    1 -
 drivers/i2c/busses/i2c-cpm.c                     |    6 --
 drivers/i2c/busses/i2c-designware.c              |    8 ++
 drivers/i2c/busses/i2c-ibm_iic.c                 |    4 -
 drivers/i2c/busses/i2c-mpc.c                     |    2 -
 drivers/i2c/busses/i2c-pxa.c                     |    2 -
 drivers/i2c/busses/i2c-tegra.c                   |    3 -
 drivers/i2c/i2c-core.c                           |   87 +++++++++++++++++++-
 drivers/of/Makefile                              |    1 -
 drivers/of/of_i2c.c                              |   97 ----------------------
 include/linux/i2c.h                              |    4 +
 include/linux/of_i2c.h                           |   30 -------
 13 files changed, 121 insertions(+), 147 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/i2c/dw-i2c.txt
 delete mode 100644 drivers/of/of_i2c.c
 delete mode 100644 include/linux/of_i2c.h
Signature · 1 line
1.7.4.1