mbox series

[v1,0/3] i2c: stop using i2c_of_match_device()

Message ID 20230221133307.20287-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series i2c: stop using i2c_of_match_device() | expand

Message

Andy Shevchenko Feb. 21, 2023, 1:33 p.m. UTC
i2c_of_match_device() is used by core and a couple of drivers.
Instead, convert those drivers to use device_get_match_data()
and unexport i2c_of_match_device().

Andy Shevchenko (3):
  usb: typec: stusb160x: Make use of device_get_match_data()
  auxdisplay: ht16k33: Make use of device_get_match_data()
  i2c: Unexport i2c_of_match_device()

 drivers/auxdisplay/ht16k33.c  | 15 ++++++++++-----
 drivers/i2c/i2c-core-of.c     |  1 -
 drivers/i2c/i2c-core.h        |  9 +++++++++
 drivers/usb/typec/stusb160x.c |  8 ++++----
 include/linux/i2c.h           | 11 -----------
 5 files changed, 23 insertions(+), 21 deletions(-)

Comments

Andy Shevchenko Feb. 23, 2023, 1:50 p.m. UTC | #1
On Tue, Feb 21, 2023 at 03:33:04PM +0200, Andy Shevchenko wrote:
> i2c_of_match_device() is used by core and a couple of drivers.
> Instead, convert those drivers to use device_get_match_data()
> and unexport i2c_of_match_device().

After a good discussion and reading a bit deeper some code,
self-NAK for this series. We seems need to be more smart.