diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2024-05-28 12:40:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-04 15:01:24 +0300 |
commit | 3093f180bc6e3b5442391e6d58a3cb08d88c9769 (patch) | |
tree | 10dd5663f8f0f2b92412b039b5183e21ca6de06b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 80c4d3d4890563632d7bcc8d048dbd4e1c519f17 (diff) | |
download | linux-3093f180bc6e3b5442391e6d58a3cb08d88c9769.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions