aboutsummaryrefslogtreecommitdiff
path: root/driver/main.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-14 20:56:43 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-14 20:56:43 +0200
commita8bab1509e795f367db2e374fe600ecacf66e26b (patch)
tree97ccd68f1142da7cd372830ba5cab08c25495b6a /driver/main.h
parent44a5c2b2d47dde5215171966eeef0acdadcaded3 (diff)
add attribute (9.4)
Diffstat (limited to 'driver/main.h')
-rw-r--r--driver/main.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/driver/main.h b/driver/main.h
new file mode 100644
index 0000000..a0ef924
--- /dev/null
+++ b/driver/main.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <linux/of.h>
+#include <linux/platform_device.h>
+
+#include "platform.h"
+
+static const struct of_device_id lork_ids[] = {
+ { .compatible = "gpio-extern" },
+ {},
+};
+
+struct platform_driver lork_driver = {
+ .probe = lork_probe,
+ .remove = lork_remove,
+ .driver = {
+ .name = "gpio-extern",
+ .owner = THIS_MODULE,
+ .of_match_table = of_match_ptr(lork_ids),
+ }
+};
+