Skip to content

i2c: busses: Introduce and use i2c_10bit_addr_*_from_msg()

Andy Shevchenko linux-arm-kernel linux-i2c linux-mediatek linux-renesas-soc lkml 2 versions – Applied

Status from this message: merged to i2c/i2c-host.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 7 repliesApplied
  2. v18 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10i2c: Introduce i2c_10bit_addr_*_from_msg() helpersinclude/linux/i2c.h+14 -01 reply
2/10i2c: axxia: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-axxia.c+3 -180 replies
3/10i2c: bcm-kona: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-bcm-kona.c+3 -30 replies
4/10i2c: brcmstb: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-brcmstb.c+5 -60 replies
5/10i2c: eg20t: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-eg20t.c+5 -230 replies
6/10i2c: kempld: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-kempld.c+5 -52 replies
7/10i2c: mt7621: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-mt7621.c+8 -122 replies
8/10i2c: rzv2m: Use i2c_10bit_addr_*_from_msg() helpersdrivers/i2c/busses/i2c-rzv2m.c+5 -100 replies
9/10i2c: ibm_iic: Use i2c_*bit_addr*_from_msg() helpersdrivers/i2c/busses/i2c-ibm_iic.c+6 -80 replies
10/10i2c: mv64xxx: Use i2c_*bit_addr*_from_msg() helpersdrivers/i2c/busses/i2c-mv64xxx.c+3 -90 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del Regno
1/10R-b
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

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 00/10] i2c: busses: Introduce and use i2c_10bit_addr_*_from_msg()

For 8-bit addresses we have a helper function, define similar ones for 10-bit addresses and use it in the drivers. It allows to remove some boilerplate code.

Fabrizio, I haven't collected your tags as code changed more than 50%, however semantically the parts you reviewed stay the same.

In v2:
- introduced hi/lo helpers (Geert)
- rewrote series based on the above
- added a couple of new converted drivers

v1: https://lore.kernel.org/r/[email protected]

Andy Shevchenko (10):
i2c: Introduce i2c_10bit_addr_*_from_msg() helpers
i2c: axxia: Use i2c_10bit_addr_*_from_msg() helpers
i2c: bcm-kona: Use i2c_10bit_addr_*_from_msg() helpers
i2c: brcmstb: Use i2c_10bit_addr_*_from_msg() helpers
i2c: eg20t: Use i2c_10bit_addr_*_from_msg() helpers
i2c: kempld: Use i2c_10bit_addr_*_from_msg() helpers
i2c: mt7621: Use i2c_10bit_addr_*_from_msg() helpers
i2c: rzv2m: Use i2c_10bit_addr_*_from_msg() helpers
i2c: ibm_iic: Use i2c_*bit_addr*_from_msg() helpers
i2c: mv64xxx: Use i2c_*bit_addr*_from_msg() helpers

 drivers/i2c/busses/i2c-axxia.c    | 21 +++------------------
 drivers/i2c/busses/i2c-bcm-kona.c |  6 +++---
 drivers/i2c/busses/i2c-brcmstb.c  | 11 +++++------
 drivers/i2c/busses/i2c-eg20t.c    | 28 +++++-----------------------
 drivers/i2c/busses/i2c-ibm_iic.c  | 14 ++++++--------
 drivers/i2c/busses/i2c-kempld.c   | 10 +++++-----
 drivers/i2c/busses/i2c-mt7621.c   | 20 ++++++++------------
 drivers/i2c/busses/i2c-mv64xxx.c  | 12 +++---------
 drivers/i2c/busses/i2c-rzv2m.c    | 15 +++++----------
 include/linux/i2c.h               | 14 ++++++++++++++
 10 files changed, 57 insertions(+), 94 deletions(-)
Signature · 1 line
2.45.1.3035.g276e886db78b