Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2023 07:49:16 GMT
From:      =?utf-8?Q?Corvin=20K=C3=B6hne?= <corvink@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 740d76544ad8 - main - linuxkpi: advance platform_device
Message-ID:  <202306130749.35D7nG84064826@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by corvink:

URL: https://cgit.FreeBSD.org/src/commit/?id=740d76544ad8a59f1be53584a0aa5bbbe00833ee

commit 740d76544ad8a59f1be53584a0aa5bbbe00833ee
Author:     Corvin Köhne <corvink@FreeBSD.org>
AuthorDate: 2023-01-31 08:18:38 +0000
Commit:     Corvin Köhne <corvink@FreeBSD.org>
CommitDate: 2023-06-13 07:49:01 +0000

    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
---
 sys/compat/linuxkpi/common/include/linux/platform_device.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306130749.35D7nG84064826>