]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: nomadik: Use HZ_PER_GHZ constant instead of plain number
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jan 2026 13:46:12 +0000 (14:46 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 13 Jan 2026 17:34:29 +0000 (18:34 +0100)
commitf83aa451460683c33824571269216e52154615da
treeeab106a88c452d4ebd8362086e84fd76e5217dbc
parentec416d46910153b4faf41eef2be72778c18c7adb
i2c: nomadik: Use HZ_PER_GHZ constant instead of plain number

Use defined constant to avoid the possible mistakes and to provide
an additional information on the units.

While at it, drop unneeded 64-bit division, all operands fit 32-bit.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260112134900.4142954-5-andriy.shevchenko@linux.intel.com
drivers/i2c/busses/i2c-nomadik.c