Linux-Renesas-SoC Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v8 0/3] i2c: improve i2c_new_{device|dummy}
@ 2019-05-16 21:13 Wolfram Sang
  2019-05-16 21:13 ` [PATCH v8 1/3] i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Wolfram Sang @ 2019-05-16 21:13 UTC (permalink / raw)
  To: linux-i2c
  Cc: linux-renesas-soc, Heiner Kallweit, Bartosz Golaszewski,
	Kieran Bingham, Peter Rosin, Wolfram Sang

Hiya,

so, here is a new version as a result of the discussion.

Changes since V7:

* dropped the 'errptr' suffix and renamed the functions to
  'i2c_new_client_device' and 'i2c_new_dummy_device'

* add EXPORT_SYMBOL_GPL to these new functions

I decided to convert the users of i2c_new_device and i2c_new_dummy to
the new functions after these functions are available. So, we can get
rid of the old functions somewhen. To speed this up, I'd like to send
them this merge window to Linus. Yeah, this is short notice, but I
simply couldn't work earlier on this because of my illness. So, if you
can support me with immediate (but still thorough!) reviews, that would
be much appreciated. If we can get it upstream this cycle, then I can
already start fixing the users.

Patch 3 is only for demonstration purposes, of course. I will send it to
the MFD list once the dependencies are upstream.

Tested on a Renesas Lager board (R-Car Gen2).

Looking forward to comments,

   Wolfram


Heiner Kallweit (2):
  i2c: core: improve return value handling of i2c_new_device and
    i2c_new_dummy
  i2c: core: add device-managed version of i2c_new_dummy

Wolfram Sang (1):
  mfd: da9063: occupy second I2C address, too

 Documentation/driver-model/devres.txt |   3 +
 drivers/i2c/i2c-core-base.c           | 118 +++++++++++++++++++++++---
 drivers/mfd/da9063-i2c.c              |   2 +
 include/linux/i2c.h                   |   3 +
 4 files changed, 113 insertions(+), 13 deletions(-)

-- 
2.19.1


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

end of thread, back to index

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 21:13 [PATCH v8 0/3] i2c: improve i2c_new_{device|dummy} Wolfram Sang
2019-05-16 21:13 ` [PATCH v8 1/3] i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy Wolfram Sang
2019-05-17  7:16   ` Peter Rosin
2019-05-17 17:35     ` Wolfram Sang
2019-05-17  8:02   ` Kieran Bingham
2019-05-17  8:56   ` Bartosz Golaszewski
2019-05-17 17:35   ` Wolfram Sang
2019-05-16 21:13 ` [PATCH v8 2/3] i2c: core: add device-managed version of i2c_new_dummy Wolfram Sang
2019-05-17  7:17   ` Peter Rosin
2019-05-17  8:21   ` Kieran Bingham
2019-05-17  8:57   ` Bartosz Golaszewski
2019-05-17 17:35   ` Wolfram Sang
2019-05-16 21:13 ` [PATCH v8 3/3] mfd: da9063: occupy second I2C address, too Wolfram Sang
2019-05-17  7:17   ` Peter Rosin
2019-05-17  8:57   ` Bartosz Golaszewski
2019-05-17 14:56   ` Kieran Bingham

Linux-Renesas-SoC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-renesas-soc/0 linux-renesas-soc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-renesas-soc linux-renesas-soc/ https://lore.kernel.org/linux-renesas-soc \
		linux-renesas-soc@vger.kernel.org linux-renesas-soc@archiver.kernel.org
	public-inbox-index linux-renesas-soc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-renesas-soc


AGPL code for this site: git clone https://public-inbox.org/ public-inbox