Skip to content

i2c: Reduce use of i2c_of_match_device()

Andy Shevchenko linux-i2c linux-pm lkml 2 versions – Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2power: ip5xxx_power: Make use of i2c_get_match_data()drivers/power/supply/ip5xxx_power.c+2 -53 replies
2/2i2c: Unexport i2c_of_match_device()drivers/i2c/i2c-core-of.c drivers/i2c/i2c-core.h include/linux/i2c.h+9 -122 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSebastian ReichelVladimir Zapolskiy
1/2A-b R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] i2c: Reduce use of i2c_of_match_device()

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(-)
Signature · 1 line
2.45.1.3035.g276e886db78b