Commit 59cbbd0b authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by John Stultz
Browse files

UPSTREAM: 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: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20221229155030.418800-6-brgl@bgdev.pl


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 370629635
Change-Id: Ia1a89518e92925764573ff2f30836384bf7bfbf7
(cherry picked from commit 00ce7c6e)
Signed-off-by: default avatarPraveen Talari <quic_ptalari@quicinc.com>
parent f4eec633
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment