mbox series

[0/2] i2c: core: add devm_i2c_new_ancillary_device()

Message ID 600080c4-a19f-7ab6-394f-c742179da00f@gmail.com
Headers show
Series i2c: core: add devm_i2c_new_ancillary_device() | expand

Message

Heiner Kallweit Jan. 30, 2023, 9:20 p.m. UTC
Add a device-managed version of i2c_new_ancillary_device().

I have an own use case, but was surprised to find it on an old wish list.
https://elinux.org/images/b/b3/I2c_21st-ELCE-2019-Sang.pdf

Heiner Kallweit (2):
  i2c: core: add devm_i2c_new_ancillary_device()
  i2c: core: extend use case for dflt addr in i2c_new_ancillary_device

 drivers/i2c/i2c-core-base.c | 50 ++++++++++++++++++++++++++++---------
 include/linux/i2c.h         |  5 ++++
 2 files changed, 43 insertions(+), 12 deletions(-)