Skip to content

i2c: busses: Introduce and use HZ_PER_GHZ

Andy Shevchenko linux-arm-kernel linux-i2c linux-mediatek linux-rockchip lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7units: Add HZ_PER_GHZinclude/linux/units.h+3 -02 replies
2/7i2c: mlxbf: Use HZ_PER_GHZ constant instead of custom onedrivers/i2c/busses/i2c-mlxbf.c+2 -30 replies
3/7i2c: mt65xx: Use HZ_PER_GHZ constant instead of plain numberdrivers/i2c/busses/i2c-mt65xx.c+6 -50 replies
4/7i2c: nomadik: Use HZ_PER_GHZ constant instead of plain numberdrivers/i2c/busses/i2c-nomadik.c+4 -31 reply
5/7i2c: rk3x: Use HZ_PER_GHZ constant instead of plain numberdrivers/i2c/busses/i2c-rk3x.c+6 -61 reply
6/7i2c: st: Use HZ_PER_GHZ constant instead of plain numberdrivers/i2c/busses/i2c-st.c+2 -11 reply
7/7i2c: synquacer: Use HZ_PER_GHZ constant instead of plain numberdrivers/i2c/busses/i2c-synquacer.c+2 -10 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus WalleijAngeloGioacchino Del RegnoAndi ShytiHeiko StuebnerWolfram SangPatrice Chotard
SeriesR-b R-b
1/7R-b R-b
2/7
3/7
4/7R-b
5/7R-b
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/7] i2c: busses: Introduce and use HZ_PER_GHZ

A few drivers for I²C host controllers use HZ_PER_GHZ in numeric form. This is less readable and prone to subtle mistakes. Instead, introduce a well defined constant and use it in the drivers. No functional change implied except one case where 64-bit division replaced with 32-bit one.

Andy Shevchenko (7):
units: Add HZ_PER_GHZ
i2c: mlxbf: Use HZ_PER_GHZ constant instead of custom one
i2c: mt65xx: Use HZ_PER_GHZ constant instead of plain number
i2c: nomadik: Use HZ_PER_GHZ constant instead of plain number
i2c: rk3x: Use HZ_PER_GHZ constant instead of plain number
i2c: st: Use HZ_PER_GHZ constant instead of plain number
i2c: synquacer: Use HZ_PER_GHZ constant instead of plain number

 drivers/i2c/busses/i2c-mlxbf.c     |  5 ++---
 drivers/i2c/busses/i2c-mt65xx.c    | 11 ++++++-----
 drivers/i2c/busses/i2c-nomadik.c   |  7 ++++---
 drivers/i2c/busses/i2c-rk3x.c      | 12 ++++++------
 drivers/i2c/busses/i2c-st.c        |  3 ++-
 drivers/i2c/busses/i2c-synquacer.c |  3 ++-
 include/linux/units.h              |  3 +++
 7 files changed, 25 insertions(+), 19 deletions(-)
Signature · 1 line
2.50.1