Thread (3 messages) 3 messages, 2 authors, 2025-06-23

Re: [PATCH 08/33] serial: 8250: sanitize uart_port::serial_{in,out}() types

From: Jiri Slaby <jirislaby@kernel.org>
Date: 2025-06-23 06:55:08
Also in: linux-arm-kernel, linux-mips, linux-serial, lkml

On 11. 06. 25, 17:12, Andy Shevchenko wrote:
On Wed, Jun 11, 2025 at 12:02:54PM +0200, Jiri Slaby (SUSE) wrote:
quoted
uart_port::{serial_in,serial_out} (and plat_serial8250_port::* likewise)
historically use:
* 'unsigned int' for 32-bit register values in reads and writes, and
* 'int' for offsets.

Make them sane such that:
* 'u32' is used for register values, and
* 'unsigned int' is used for offsets.

While at it, name hooks' parameters, so it is clear what is what.
At a glance this looks just mechanical change. Have you used coccinelle for
that?
No, I haven't managed to learn that :P. But I used 
https://github.com/jirislaby/clang-struct.

thanks,
-- 
js
suse labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help