mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user