]> git.baikalelectronics.ru Git - kernel.git/commit
serial: ucc_uart: access __be32 field using be32_to_cpu
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 28 Nov 2019 14:55:39 +0000 (15:55 +0100)
committerLi Yang <leoyang.li@nxp.com>
Mon, 9 Dec 2019 19:54:35 +0000 (13:54 -0600)
commita00f806b09f6f495affb7803b3ac418355f314fd
treecfb85dd36bc08db556213616e7dcf283b835ed60
parent3e402c22a115f56b3a00b3d3e7eb0cc08a501655
serial: ucc_uart: access __be32 field using be32_to_cpu

The buf member of struct qe_bd is a __be32, so to make this work on
little-endian hosts, use be32_to_cpu when reading it.

Reviewed-by: Timur Tabi <timur@kernel.org>
Acked-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/tty/serial/ucc_uart.c