]> www.infradead.org Git - users/dwmw2/linux.git/commit
staging: wfx: fix output of rx_stats on big endian hosts
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 12 May 2020 15:04:02 +0000 (17:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:22 +0000 (17:48 +0200)
commitbe66f10a60e3ec0b589898f78a428bcb34095730
tree0c01a935684112d5708f444051d9801d573da950
parent373a187be0b97e74d697be0c832aba99ee798667
staging: wfx: fix output of rx_stats on big endian hosts

[ Upstream commit a823d6ecd4904e1a6ffb12964de88fb0bb4802f6 ]

The struct hif_rx_stats contains only little endian values. Thus, it is
necessary to fix byte ordering before to use them.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200512150414.267198-6-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/wfx/debug.c