linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] i2c: Reduce use of i2c_of_match_device()
@ 2025-02-13 11:45 Andy Shevchenko
  2025-02-13 11:45 ` [PATCH v2 1/2] power: ip5xxx_power: Make use of i2c_get_match_data() Andy Shevchenko
  2025-02-13 11:45 ` [PATCH v2 2/2] i2c: Unexport i2c_of_match_device() Andy Shevchenko
  0 siblings, 2 replies; 8+ messages in thread
From: Andy Shevchenko @ 2025-02-13 11:45 UTC (permalink / raw)
  To: Andy Shevchenko, Sebastian Reichel, Bence Csókás,
	Wolfram Sang, linux-i2c, linux-kernel, linux-pm
  Cc: Samuel Holland, Sebastian Reichel


The i2c_of_match_device() was developed as internal API and was exported just
in case well before we get an idea of the generic helper for getting driver
data for the matched device. For all the times of i2c_of_match_device() being
exported there were _only_ three users, two of which had been already converted
to better API. For preventing the use of i2c_of_match_device(), make it private
to I²C subsystem.

This is assumed to go via I²C tree, but can be done differently taking into
account the immutable tag or branch for involved subsystems.

In v2:
- collected tags (Sebastian)
- removed one leftover in the first patch

Andy Shevchenko (2):
  power: ip5xxx_power: Make use of i2c_get_match_data()
  i2c: Unexport i2c_of_match_device()

 drivers/i2c/i2c-core-of.c           |  1 -
 drivers/i2c/i2c-core.h              |  9 +++++++++
 drivers/power/supply/ip5xxx_power.c |  7 ++-----
 include/linux/i2c.h                 | 11 -----------
 4 files changed, 11 insertions(+), 17 deletions(-)

-- 
2.45.1.3035.g276e886db78b


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

end of thread, other threads:[~2025-02-13 15:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 11:45 [PATCH v2 0/2] i2c: Reduce use of i2c_of_match_device() Andy Shevchenko
2025-02-13 11:45 ` [PATCH v2 1/2] power: ip5xxx_power: Make use of i2c_get_match_data() Andy Shevchenko
2025-02-13 12:09   ` Vladimir Zapolskiy
2025-02-13 12:24   ` Vladimir Zapolskiy
2025-02-13 15:51   ` Wolfram Sang
2025-02-13 11:45 ` [PATCH v2 2/2] i2c: Unexport i2c_of_match_device() Andy Shevchenko
2025-02-13 12:08   ` Vladimir Zapolskiy
2025-02-13 15:51   ` Wolfram Sang

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).