diff options
author | Saravana Kannan <saravanak@google.com> | 2024-03-04 21:04:54 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-07 22:10:01 +0000 |
commit | 75cde56a5b504d07a64ce0e3f8c7410df70308a3 (patch) | |
tree | 6b360bf6277e2a2bbcd22d3235e8307c99ca42e5 /include | |
parent | 952c3fce297f12c7ff59380adb66b564e2bc9b64 (diff) | |
download | linux-stable-75cde56a5b504d07a64ce0e3f8c7410df70308a3.tar.gz linux-stable-75cde56a5b504d07a64ce0e3f8c7410df70308a3.tar.bz2 linux-stable-75cde56a5b504d07a64ce0e3f8c7410df70308a3.zip |
driver core: Adds flags param to fwnode_link_add()
Allow the callers to set fwnode link flags when adding fwnode links.
Signed-off-by: Saravana Kannan <saravanak@google.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240305050458.1400667-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fwnode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h index 80f3cd91b471..70d9c40269b9 100644 --- a/include/linux/fwnode.h +++ b/include/linux/fwnode.h @@ -214,7 +214,8 @@ static inline void fwnode_dev_initialized(struct fwnode_handle *fwnode, fwnode->flags &= ~FWNODE_FLAG_INITIALIZED; } -int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup); +int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup, + u8 flags); void fwnode_links_purge(struct fwnode_handle *fwnode); void fw_devlink_purge_absent_suppliers(struct fwnode_handle *fwnode); bool fw_devlink_is_strict(void); |