]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 9 Dec 2025 15:18:50 +0000 (16:18 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:37:35 +0000 (19:37 +0900)
Replace cpu_to_be64(le64_to_cpu()) with swab64() to simplify
byte_swap_64().  No functional changes.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20251209151853.432518-1-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm0010.c

index 7511c71695c6ccb7dd761559ac9e2633b85e016d..6e097d8ed2888b5e6e701ce5f462de70101b1d01 100644 (file)
@@ -326,7 +326,7 @@ static void byte_swap_64(u64 *data_in, u64 *data_out, u32 len)
        int i;
 
        for (i = 0; i < len / 8; i++)
-               data_out[i] = cpu_to_be64(le64_to_cpu(data_in[i]));
+               data_out[i] = swab64(data_in[i]);
 }
 
 static int wm0010_firmware_load(const char *name, struct snd_soc_component *component)