aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWentong Wu <[email protected]>2024-06-25 16:10:45 +0800
committerGreg Kroah-Hartman <[email protected]>2024-07-04 12:21:39 +0200
commita896a8a127f45d00fb69fa7536955aa9b2e5d610 (patch)
treee5f14719151813649e06a780ea40d1bc11f9fd29
parenta9e8fe38195ae6f8e5b32907a17b397ff3ce3e48 (diff)
mei: vsc: Utilize the appropriate byte order swap function
Switch from cpu_to_be32_array() to be32_to_cpu_array() for the received ROM data. Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device") Cc: [email protected] # for 6.8+ Signed-off-by: Wentong Wu <[email protected]> Tested-by: Jason Chen <[email protected]> Acked-by: Sakari Ailus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/misc/mei/vsc-tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/vsc-tp.c b/drivers/misc/mei/vsc-tp.c
index 5f3195636e53..876330474444 100644
--- a/drivers/misc/mei/vsc-tp.c
+++ b/drivers/misc/mei/vsc-tp.c
@@ -336,7 +336,7 @@ int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len)
return ret;
if (ibuf)
- cpu_to_be32_array(ibuf, tp->rx_buf, words);
+ be32_to_cpu_array(ibuf, tp->rx_buf, words);
return ret;
}