]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: mlxbf: Use HZ_PER_KHZ in the driver
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jan 2026 13:55:11 +0000 (14:55 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 14 Jan 2026 07:33:14 +0000 (08:33 +0100)
Use predefined HZ_PER_MHZ constant where it is appropriate.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260112135603.4150952-3-andriy.shevchenko@linux.intel.com
drivers/i2c/busses/i2c-mlxbf.c

index 9f004804411233481f15a502fa008123e01ce35e..6c1cfe9ec8accefaa3f95424393953ff3b869ff6 100644 (file)
@@ -66,7 +66,7 @@
  * strongly dependent on the core clock frequency of the SMBus
  * Master. Default value is set to 400MHz.
  */
-#define MLXBF_I2C_TYU_PLL_OUT_FREQ  (400 * 1000 * 1000)
+#define MLXBF_I2C_TYU_PLL_OUT_FREQ  (400 * HZ_PER_MHZ)
 /* Reference clock for Bluefield - 156 MHz. */
 #define MLXBF_I2C_PLL_IN_FREQ       156250000ULL