aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorvin Köhne <corvink@FreeBSD.org>2023-01-31 08:18:38 +0000
committerCorvin Köhne <corvink@FreeBSD.org>2023-08-17 13:06:53 +0000
commit1fb7c59981bc5d4c522521df067caaaa85c42cdb (patch)
treec14cfe250d2022fba0d4cd32970ba05327f9b2f4
parent320ce3c3c56bb0b52236d67c995a9d669e7a5bd2 (diff)
downloadsrc-1fb7c59981bc5d4c522521df067caaaa85c42cdb.tar.gz
src-1fb7c59981bc5d4c522521df067caaaa85c42cdb.zip
linuxkpi: advance platform_device
These are required by some linux driver like: https://github.com/beckhoff/bbapi Reviewed by: manu MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39554 (cherry picked from commit 740d76544ad8a59f1be53584a0aa5bbbe00833ee)
-rw-r--r--sys/compat/linuxkpi/common/include/linux/platform_device.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/platform_device.h b/sys/compat/linuxkpi/common/include/linux/platform_device.h
index f45cdce829c4..0d7aebfa4037 100644
--- a/sys/compat/linuxkpi/common/include/linux/platform_device.h
+++ b/sys/compat/linuxkpi/common/include/linux/platform_device.h
@@ -34,6 +34,9 @@
#include <linux/device.h>
struct platform_device {
+ const char *name;
+ int id;
+ bool id_auto;
struct device dev;
};
@@ -78,6 +81,13 @@ platform_driver_unregister(struct platform_driver *pdrv)
return;
}
+static __inline int
+platform_device_register(struct platform_device *pdev)
+{
+ pr_debug("%s: TODO\n", __func__);
+ return (0);
+}
+
static __inline void
platform_device_unregister(struct platform_device *pdev)
{