]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: qcom-geni: move clock-rate logic to separate function
authorPraveen Talari <quic_ptalari@quicinc.com>
Mon, 21 Jul 2025 17:45:30 +0000 (23:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2025 16:52:50 +0000 (18:52 +0200)
commit5893e62d46bce4ff2e0bc422c0957539d36e0f06
tree504fc0edf8253951a1469050ae99b8cbcfb13c67
parent94d691417e6f1fe5ba28c092fe95de3dc66d5e3c
serial: qcom-geni: move clock-rate logic to separate function

Facilitates future modifications within the new function,
leading to better readability and maintainability of the code.

Move the code that handles the actual logic of clock-rate
calculations to a separate function geni_serial_set_rate()
which enhances code readability.

Signed-off-by: Praveen Talari <quic_ptalari@quicinc.com>
Link: https://lore.kernel.org/r/20250721174532.14022-7-quic_ptalari@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c