summaryrefslogtreecommitdiff
path: root/include/linux/fwnode.h
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2020-02-21 17:40:35 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-04 17:58:48 +0100
commit8375e74f2bca9802a4ddf431a6d7bd2ab9950f27 (patch)
tree791117d1257c1c187d5c6e0d087f8331c072fb00 /include/linux/fwnode.h
parent1745d299af5b373abad08fa29bff0d31dc6aff21 (diff)
downloadlwn-8375e74f2bca9802a4ddf431a6d7bd2ab9950f27.tar.gz
lwn-8375e74f2bca9802a4ddf431a6d7bd2ab9950f27.zip
driver core: Add fw_devlink kernel commandline option
fwnode_operations.add_links allows creating device links from information provided by firmware. fwnode_operations.add_links is currently implemented only by OF/devicetree code and a specific case of efi. However, there's nothing preventing ACPI or other firmware types from implementing it. The OF implementation is currently controlled by a kernel commandline parameter called of_devlink. Since this feature is generic isn't limited to OF, add a generic fw_devlink kernel commandline parameter to control this feature across firmware types. Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20200222014038.180923-3-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fwnode.h')
-rw-r--r--include/linux/fwnode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h
index 8feeb94b8acc..e0abafbb17f8 100644
--- a/include/linux/fwnode.h
+++ b/include/linux/fwnode.h
@@ -170,4 +170,6 @@ struct fwnode_operations {
} while (false)
#define get_dev_from_fwnode(fwnode) get_device((fwnode)->dev)
+extern u32 fw_devlink_get_flags(void);
+
#endif