]> git.ipfire.org Git - thirdparty/linux.git/commit
tty: serial: samsung_tty: cast the interrupt's void *id just once
authorAndré Draszik <andre.draszik@linaro.org>
Thu, 8 Aug 2024 08:11:52 +0000 (09:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 06:22:49 +0000 (08:22 +0200)
commitff3c62edfc4e7af94f4c960962c105b4b564e939
tree7591b2419681036e2682620f1414ac27b8f5126b
parent24179de090b973850e0359299a273683ab2e44b5
tty: serial: samsung_tty: cast the interrupt's void *id just once

The interrupt handler routines and helpers are casting the 'void *'
pointer to 'struct exynos_uart_port *' all over the place.

There is no need for that, we can do the casting once and keep passing
the 'struct exynos_uart_port *', simplifying the code and saving a few
lines of code.

No functional changes.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240808-samsung-tty-cleanup-v3-2-494412f49f4b@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c