summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2025-09-23 12:43:51 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-05-19 14:20:18 +0200
commit7e6445d9d6f7dfc5635fc216488d6f62a5594fe9 (patch)
tree79f8d863038c1f0295697dfff40fd96844f19818 /include/linux
parentc12b5ee30fb665133b3119283cfe7ce9474e3589 (diff)
thunderbolt: Add tb_property_merge_dir()
This allows merging one XDomain property directory into another. We are going to use this in the subsequent patch. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/thunderbolt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/thunderbolt.h b/include/linux/thunderbolt.h
index bbdbbc84c999..e98d569779f9 100644
--- a/include/linux/thunderbolt.h
+++ b/include/linux/thunderbolt.h
@@ -153,6 +153,9 @@ struct tb_property_dir *tb_property_parse_dir(const u32 *block,
ssize_t tb_property_format_dir(const struct tb_property_dir *dir, u32 *block,
size_t block_len);
struct tb_property_dir *tb_property_copy_dir(const struct tb_property_dir *dir);
+int tb_property_merge_dir(struct tb_property_dir *parent,
+ const struct tb_property_dir *dir,
+ bool replace);
struct tb_property_dir *tb_property_create_dir(const uuid_t *uuid);
void tb_property_free_dir(struct tb_property_dir *dir);
int tb_property_add_immediate(struct tb_property_dir *parent, const char *key,