summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2025-11-17 10:54:37 -0800
committerGuenter Roeck <linux@roeck-us.net>2025-11-17 10:54:37 -0800
commitd5c0ae872e2ec16280245a2f7a1edab8ba11be24 (patch)
tree3e754b9c0df3d7540c1f8278d2d2a9f8e5b8a0df
parent862fa23acc678343986ab39e7f6c2ceaf14f34c2 (diff)
parentb340412a3b22b60b5e19cce8726940c7b5b14439 (diff)
Merge tag 'ib-mfd-hwmon-v6.19' into hwmon-next
Immutable branch between MFD and HWMON due for the v6.19 merge window
-rw-r--r--include/linux/mfd/macsmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/macsmc.h b/include/linux/mfd/macsmc.h
index 6b13f01a8592..f6f80c33b5cf 100644
--- a/include/linux/mfd/macsmc.h
+++ b/include/linux/mfd/macsmc.h
@@ -41,6 +41,7 @@ typedef u32 smc_key;
*/
#define SMC_KEY(s) (smc_key)(_SMC_KEY(#s))
#define _SMC_KEY(s) (((s)[0] << 24) | ((s)[1] << 16) | ((s)[2] << 8) | (s)[3])
+#define __SMC_KEY(a, b, c, d) (((u32)(a) << 24) | ((u32)(b) << 16) | ((u32)(c) << 8) | ((u32)(d)))
#define APPLE_SMC_READABLE BIT(7)
#define APPLE_SMC_WRITABLE BIT(6)