summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2026-02-03 21:53:38 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2026-02-03 21:53:38 +0100
commit8ed5a41afd0ef8db995a4f90668e73075b1cf940 (patch)
tree1a5656951a44269226e2cf29fc65614510fc8473 /include
parent756b7b8d0a7be725baaf92bfce794a72021145d4 (diff)
parent51e8ce3630878fa6083e1eec84f58f49ec85089b (diff)
downloadlinux-8ed5a41afd0ef8db995a4f90668e73075b1cf940.tar.gz
linux-8ed5a41afd0ef8db995a4f90668e73075b1cf940.zip
Merge tag 'i2c-host-6.20' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-mergewindow
i2c-host for v6.20 - amd-mp2, designware, mlxbf, rtl9300, spacemit, tegra: cleanups - designware: use a dedicated algorithm for AMD Navi - designware: replace magic numbers with named constants - designware: replace min_t() with min() to avoid u8 truncation - designware: refactor core to enable mode switching - imx-lpi2c: add runtime PM support for IRQ and clock handling - lan9691-i2c: add new driver - rtl9300: use OF helpers directly and avoid fwnode handling - spacemit: add bus reset support - units: add HZ_PER_GHZ and use it in several i2c drivers
Diffstat (limited to 'include')
-rw-r--r--include/linux/units.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/units.h b/include/linux/units.h
index 00e15de33eca..0c296a004e89 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -25,9 +25,12 @@
#define MICROHZ_PER_HZ 1000000UL
#define MILLIHZ_PER_HZ 1000UL
+/* Hz based multipliers */
#define HZ_PER_KHZ 1000UL
#define HZ_PER_MHZ 1000000UL
+#define HZ_PER_GHZ 1000000000UL
+/* kHz based multipliers */
#define KHZ_PER_MHZ 1000UL
#define KHZ_PER_GHZ 1000000UL