linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Rework OF i2c support code
@ 2010-06-10  5:22 Grant Likely
  2010-06-10  5:22 ` [PATCH 1/2] of/i2c: Generalize OF support Grant Likely
  2010-06-10  5:22 ` [PATCH 2/2] i2c: Add OF-style registration and binding Grant Likely
  0 siblings, 2 replies; 5+ messages in thread
From: Grant Likely @ 2010-06-10  5:22 UTC (permalink / raw)
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

The following series reworks the of_i2c support code so that i2c drivers
can be matched to devices using the struct device_driver of_match table,
and so that i2c devices described in a device tree node will be
transparently registered if the i2c adapter of_node pointer is set.

The OF hooks used in the second patch are entirely compiled out when
CONFIG_OF is not set.

---

Ben, these changes probably should go through my devicetree branch.  They
are currently sitting in the following branch, and I'll move it over to
next-devicetree in a week or so if I don't receive any objections (it
can always come out again if there are, but I want the test coverage).

git://git.secretlab.ca/git/linux-2.6 test-devicetree

Grant Likely (2):
      of/i2c: Generalize OF support
      i2c: Add OF-style registration and binding


 drivers/i2c/busses/i2c-cpm.c     |    6 +----
 drivers/i2c/busses/i2c-ibm_iic.c |    4 +--
 drivers/i2c/busses/i2c-mpc.c     |    2 +-
 drivers/i2c/i2c-core.c           |    9 ++++++++
 drivers/of/Kconfig               |    2 +-
 drivers/of/of_i2c.c              |   44 ++++++++++++++++++++++++--------------
 include/linux/of_i2c.h           |   13 +++++++++--
 7 files changed, 51 insertions(+), 29 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-10 16:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10  5:22 [PATCH 0/2] Rework OF i2c support code Grant Likely
2010-06-10  5:22 ` [PATCH 1/2] of/i2c: Generalize OF support Grant Likely
2010-06-10  9:52   ` Wolfram Sang
     [not found]     ` <20100610095226.GI5333-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2010-06-10 16:58       ` Grant Likely
2010-06-10  5:22 ` [PATCH 2/2] i2c: Add OF-style registration and binding Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).