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
This commit is contained in:
Corvin Köhne committed 2023-06-13 09:49:01 +02:00
1 parent f1549d7d52
commit 740d76544a
1 file changed
+10
@@ -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)
{