[PATCH v1 0/3] i2c: stop using i2c_of_match_device()
Posted by
Andy Shevchenko
2 years, 6 months ago
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(-)
--
2.39.1
Re: [PATCH v1 0/3] i2c: stop using i2c_of_match_device()
Posted by
Andy Shevchenko
2 years, 6 months ago
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.
--
With Best Regards,
Andy Shevchenko