[PATCH 2/6] thunderbolt: property: Unify format_dwdata()/parse_dwdata()

From: Thomas Weißschuh

Date: Sun May 24 2026 - 09:07:20 EST


Both function do the same. They are about to change. To make that
easier, implement one in terms of the other.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
drivers/thunderbolt/property.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thunderbolt/property.c b/drivers/thunderbolt/property.c
index da2c59a17db5..fb96608ca471 100644
--- a/drivers/thunderbolt/property.c
+++ b/drivers/thunderbolt/property.c
@@ -48,7 +48,7 @@ static inline void parse_dwdata(void *dst, const void *src, size_t dwords)

static inline void format_dwdata(void *dst, const void *src, size_t dwords)
{
- cpu_to_be32_array(dst, src, dwords);
+ return parse_dwdata(dst, src, dwords);
}

static bool tb_property_entry_valid(const struct tb_property_entry *entry,

--
2.54.0