aboutsummaryrefslogtreecommitdiff
path: root/driver/main.h
diff options
context:
space:
mode:
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),
+ }
+};
+