Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 11:56:18 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6c62af80e347 - stable/13 - linuxkpi: Define `dev_is_platform()` and `to_platform_device()`
Message-ID:  <202302161156.31GBuI4f055921@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=6c62af80e347980094b1df4de50e66531f49190e

commit 6c62af80e347980094b1df4de50e66531f49190e
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-01-22 13:46:54 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-02-16 11:55:18 +0000

    linuxkpi: Define `dev_is_platform()` and `to_platform_device()`
    
    The former returns false and the latter returns NULL.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D38163
    
    (cherry picked from commit b9ef0689433d7d08c96695e571c4c262a3ac9007)
---
 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 f07b5aac967b..f45cdce829c4 100644
--- a/sys/compat/linuxkpi/common/include/linux/platform_device.h
+++ b/sys/compat/linuxkpi/common/include/linux/platform_device.h
@@ -42,6 +42,8 @@ struct platform_driver {
 	struct device_driver		driver;
 };
 
+#define	dev_is_platform(dev)	(false)
+#define	to_platform_device(dev)	(NULL)
 
 static __inline int
 platform_driver_register(struct platform_driver *pdrv)
@@ -76,4 +78,12 @@ platform_driver_unregister(struct platform_driver *pdrv)
 	return;
 }
 
+static __inline void
+platform_device_unregister(struct platform_device *pdev)
+{
+
+	pr_debug("%s: TODO\n", __func__);
+	return;
+}
+
 #endif	/* _LINUXKPI_LINUX_PLATFORM_DEVICE_H */



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