tty: serial: qcom-geni-serial: improve the to_dev_port() macro
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 29 Dec 2022 15:50:21 +0000 (16:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:08:25 +0000 (15:08 +0100)
commit00ce7c6e86b5d1f04c4feb9e010b0408c7be1002
treecfe5da3e6729013c654ef3aebf6a829adfae0c71
parent6cde11dbf4b65170eeefba48df730c93d75e01a3
tty: serial: qcom-geni-serial: improve the to_dev_port() macro

The member we want to resolve in struct qcom_geni_serial_port is called
uport so we don't need an additional redundant parameter in this macro.

While at it: turn the macro into a static inline function.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20221229155030.418800-6-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c