Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

coresight: fix function etm_writel_cp14() parameter order

Function etm_writel_cp14() takes an offset and a value rather
than the other way around, something this patch is correcting.
The semantic remains the same since it is only a function stub.

Signed-off-by: Kaixu Xia <xiakaixu@huawei.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kaixu Xia and committed by
Greg Kroah-Hartman
5fb31cd8 406b9f65

+1 -1
+1 -1
drivers/coresight/coresight-priv.h
··· 57 57 extern int etm_writel_cp14(u32 off, u32 val); 58 58 #else 59 59 static inline int etm_readl_cp14(u32 off, unsigned int *val) { return 0; } 60 - static inline int etm_writel_cp14(u32 val, u32 off) { return 0; } 60 + static inline int etm_writel_cp14(u32 off, u32 val) { return 0; } 61 61 #endif 62 62 63 63 #endif