Skip to content

Commit fa0e737

Browse files
committed
fixup! platform/apple: Add new Apple Mac SMC driver
Signed-off-by: Janne Grunau <[email protected]>
1 parent 62b39e7 commit fa0e737

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/mfd/macsmc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ typedef u32 smc_key;
1313

1414
#define SMC_KEY(s) (smc_key)(_SMC_KEY(#s))
1515
#define _SMC_KEY(s) (((s)[0] << 24) | ((s)[1] << 16) | ((s)[2] << 8) | (s)[3])
16+
#define __SMC_KEY(a, b, c, d) (((u32)(a) << 24) | ((u32)(b) << 16) | \
17+
((u32)(c) << 8) | (u32)(d))
1618

1719
#define APPLE_SMC_READABLE BIT(7)
1820
#define APPLE_SMC_WRITABLE BIT(6)

0 commit comments

Comments
 (0)