We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b0cce0 commit 24271a7Copy full SHA for 24271a7
2 files changed
drivers/hwmon/applesmc.c
@@ -17,6 +17,7 @@
17
18
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
19
20
+#include <linux/cachy-t2.h>
21
#include <linux/delay.h>
22
#include <linux/platform_device.h>
23
#include <linux/input.h>
@@ -1310,7 +1311,7 @@ static int __init applesmc_init(void)
1310
1311
{
1312
int ret;
1313
- if (!dmi_check_system(applesmc_whitelist)) {
1314
+ if (!dmi_check_system(applesmc_whitelist) || apple_is_t2_mac()) {
1315
pr_warn("supported laptop not found!\n");
1316
ret = -ENODEV;
1317
goto out;
include/linux/cachy-t2.h
@@ -0,0 +1,8 @@
1
+#ifndef CACHYOS_T2_H
2
+#define CACHYOS_T2_H
3
+
4
+#include <linux/types.h>
5
6
+bool apple_is_t2_mac(void);
7
8
+#endif
0 commit comments