Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: serial: qcom_geni_serial: Use u32 for register variables

Use u32 rather than unsigned long for register variables for clarity and
consistency.

Signed-off-by: Ryan Case <ryandcase@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ryan Case and committed by
Greg Kroah-Hartman
385298ab bdc05a8a

+12 -12
+12 -12
drivers/tty/serial/qcom_geni_serial.c
··· 758 758 759 759 static irqreturn_t qcom_geni_serial_isr(int isr, void *dev) 760 760 { 761 - unsigned int m_irq_status; 762 - unsigned int s_irq_status; 763 - unsigned int geni_status; 761 + u32 m_irq_en; 762 + u32 m_irq_status; 763 + u32 s_irq_status; 764 + u32 geni_status; 764 765 struct uart_port *uport = dev; 765 766 unsigned long flags; 766 - unsigned int m_irq_en; 767 767 bool drop_rx = false; 768 768 struct tty_port *tport = &uport->state->port; 769 769 struct qcom_geni_serial_port *port = to_dev_port(uport, uport); ··· 842 842 static int qcom_geni_serial_port_setup(struct uart_port *uport) 843 843 { 844 844 struct qcom_geni_serial_port *port = to_dev_port(uport, uport); 845 - unsigned int rxstale = DEFAULT_BITS_PER_CHAR * STALE_TIMEOUT; 845 + u32 rxstale = DEFAULT_BITS_PER_CHAR * STALE_TIMEOUT; 846 846 u32 proto; 847 847 848 848 if (uart_console(uport)) { ··· 941 941 struct ktermios *termios, struct ktermios *old) 942 942 { 943 943 unsigned int baud; 944 - unsigned int bits_per_char; 945 - unsigned int tx_trans_cfg; 946 - unsigned int tx_parity_cfg; 947 - unsigned int rx_trans_cfg; 948 - unsigned int rx_parity_cfg; 949 - unsigned int stop_bit_len; 944 + u32 bits_per_char; 945 + u32 tx_trans_cfg; 946 + u32 tx_parity_cfg; 947 + u32 rx_trans_cfg; 948 + u32 rx_parity_cfg; 949 + u32 stop_bit_len; 950 950 unsigned int clk_div; 951 - unsigned long ser_clk_cfg; 951 + u32 ser_clk_cfg; 952 952 struct qcom_geni_serial_port *port = to_dev_port(uport, uport); 953 953 unsigned long clk_rate; 954 954