From 9f19dd9f617a6167442fac536d628b04471de59a Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Mon, 18 Nov 2019 18:21:27 -0800 Subject: mmio: Fix buffer_to_fifo32() order of arguments buffer_to_fifo32() is a simple wrapper to buffer_to_fifo32_prefix(), but unfortunately its arguments are swapped. This patch fixes the issue. Change-Id: I6414bf51dd9de681b3b87bbaf4ea4efc815f7ae1 Signed-off-by: Julius Werner Reviewed-on: https://review.coreboot.org/c/coreboot/+/36942 Reviewed-by: Hung-Te Lin Tested-by: build bot (Jenkins) --- src/include/device/mmio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/device/mmio.h b/src/include/device/mmio.h index df36eb6f96..6596cf89ed 100644 --- a/src/include/device/mmio.h +++ b/src/include/device/mmio.h @@ -48,7 +48,7 @@ void buffer_to_fifo32_prefix(void *buffer, u32 prefix, int prefsz, size_t size, static inline void buffer_to_fifo32(void *buffer, size_t size, void *fifo, int fifo_stride, int fifo_width) { - buffer_to_fifo32_prefix(buffer, size, 0, 0, fifo, + buffer_to_fifo32_prefix(buffer, 0, 0, size, fifo, fifo_stride, fifo_width); } -- cgit v1.2.3