Rasmus Villemoes 3093f180bc serial: imx: stop casting struct uart_port to struct imx_port
struct imx_port does have a struct uart_port as its first member, so
the current code works, but it is not how kernel code is usually
written.

Similar to many other serial drivers, introduce and use a
to_imx_port() helper based on container_of(). No functional change.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20240528094022.2161066-1-linux@rasmusvillemoes.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-04 14:01:24 +02:00
..
2024-05-22 11:53:02 -07:00
2024-02-06 14:35:38 +00:00
2023-12-08 12:02:38 +01:00
2023-12-08 12:02:38 +01:00
2024-05-24 08:38:28 -07:00
2023-12-08 12:02:38 +01:00
2023-08-11 21:12:47 +02:00
2023-12-08 12:02:38 +01:00
2023-08-11 21:12:46 +02:00
2024-01-18 11:43:55 -08:00
2023-12-08 12:02:37 +01:00