diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-13 20:51:00 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-16 11:55:21 +0000 |
commit | 3a8e16e47b41b27c8ccf4a3dc66656d9b19fa764 (patch) | |
tree | 7570a041f885336dc44848b91b24e1c1aa02acd1 | |
parent | 01b3fc89ddd8e48c6dfe584d44b6018edc4f3a5f (diff) | |
download | src-3a8e16e47b41b27c8ccf4a3dc66656d9b19fa764.tar.gz src-3a8e16e47b41b27c8ccf4a3dc66656d9b19fa764.zip |
linuxkpi: Declare `struct fwnode_handle` in <linux/fwnode.h>
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38566
(cherry picked from commit 7d03acf065ed96fd04a54bf8e1c83a032ffed097)
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/device.h | 2 | ||||
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/fwnode.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index 01a1729830c4..d91c14bd87b7 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -48,13 +48,13 @@ #include <linux/pm.h> #include <linux/idr.h> #include <linux/ratelimit.h> /* via linux/dev_printk.h */ +#include <linux/fwnode.h> #include <asm/atomic.h> #include <sys/bus.h> #include <sys/backlight.h> struct device; -struct fwnode_handle; struct class { const char *name; diff --git a/sys/compat/linuxkpi/common/include/linux/fwnode.h b/sys/compat/linuxkpi/common/include/linux/fwnode.h new file mode 100644 index 000000000000..a1fbc1b6d6a3 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/fwnode.h @@ -0,0 +1,10 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_LINUX_FWNODE_H_ +#define _LINUXKPI_LINUX_FWNODE_H_ + +struct fwnode_handle { + struct fwnode_handle *secondary; +}; + +#endif /* _LINUXKPI_LINUX_FWNODE_H_ */ |