Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4202683imu; Mon, 7 Jan 2019 18:00:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XJf6etPbLrR9qboFvIZhyAfQlxOF5qvCe3qFp9wGB6UwFToCXjhORn0yL/kna32VHJxdQ X-Received: by 2002:a63:6a05:: with SMTP id f5mr59134661pgc.72.1546912856693; Mon, 07 Jan 2019 18:00:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546912856; cv=none; d=google.com; s=arc-20160816; b=L0jlPY6h4mnTUDhS0tvcG1e58tjyuxi5bPshvNuapG3E8h56xmQpJVFH16HDGUM3G5 ppCFh0sVe0HTEq3wdwwZEf8839S46eZjovc38c/DCylIUMLF4Wd7CsJMvnwszEM6X3b3 IHn4VHKZCjLjbUCQiSTuotsfpxnIL4VwnW52bgEfjIJ/1KJT4sHwBo0gcbnGxbXC9zph lrABVm65dGwOGHmvQo148TmnxVpQr5i4piazTh7UTbtM1qOt5qypVo5ndFMkMMP6Szb8 ncCsHBMyxFRownEVVRj92lf9kx7chAbbYkK/ShP8Eiou0kFboja3mIcJ6oH4cCIFLXKd YySg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6aWVzNk/EuKcySVmNuQJZ7QrEX9QtF5bb3gvxpEHdAA=; b=psWRtah+bjObibNxC3YiWn5Dzj8ub1OgoX9PI17hb50SPwCn1z23+eadAlPqe7iDmy fEItQJCVAjxpsSCsTwiDnCXRFyevEpusqaHre1yVD2CMOz6GR04RGbuR52mtxZpf71Hg aG30utO/Jo2+2uuwj3hs65Z4zjoHnySmRfCi9UIvLvCcsUovfXahKZFk7lc0ce6sdenI G94c5snTy3QuPEam6+MOCL9TQCJ5i6njgxf+cTr9xt/5q9sGbK+QqcRetXr9qqBQV8rY ClEgIOgiOyd+QP8dF9lrRAVfk74CkuFkPjNLFx3sIpG20ZZ15n+GtDQAFFso/TV10n6h qGTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YVc6FN+x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f186si66189319pfb.67.2019.01.07.18.00.39; Mon, 07 Jan 2019 18:00:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YVc6FN+x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbfAHB73 (ORCPT + 99 others); Mon, 7 Jan 2019 20:59:29 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44588 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbfAHB7Z (ORCPT ); Mon, 7 Jan 2019 20:59:25 -0500 Received: by mail-pg1-f193.google.com with SMTP id t13so968711pgr.11 for ; Mon, 07 Jan 2019 17:59:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6aWVzNk/EuKcySVmNuQJZ7QrEX9QtF5bb3gvxpEHdAA=; b=YVc6FN+xBTeTzyrv00fy4tVdrodshrwLlCTP4OsMcc0AKIB1tZJFJ65U2hhqR+Jh2M y2cC2/w4LkJidmfIt+nwHJIpkss3MOhv85r1KFNZV0UlTrsFsLTsHopvNo5pCc+Cyd4L SDxmupBwHzJTR0RYLNDwfBDOat3y5e1LW9has= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6aWVzNk/EuKcySVmNuQJZ7QrEX9QtF5bb3gvxpEHdAA=; b=bgT7BRqWnHBSFR3YqUxg7v3P4HupkW/k0LIKAuz7eJyxRCj8+N27CfVygz/+19sRCZ mLjeSzlNHFqf99zhce5qhv0VfD+zg4zNjKnaWxMNoVpoA7sgLEH877uPOML+pYOebxnP whfQiImoR8utMkbc2Q6Rm/ZAxF48MRc4tefWp4Qd1K8+d0SPqrvuwqXtBQZd1QIgZ8E1 8OSP4J30oXbe1gkypD5FyM10ozmLq4wBd7SGVRb8yUnauYLv0v1fEvY8sFE79sQKL6XH LfuR1OKkfMoyhbHBGS2D+M7M76XSPsl/YjSx8WvsIbvOHARYXCkaIlULDE65vk4YRUqJ qLWA== X-Gm-Message-State: AJcUukes101qpsXVvxG2gDplVpdi+Zcq3tKRJymKMr5vDSjCBW4NMN8c isqw4Dc+dtEJY3c6uWv6UyvBBw== X-Received: by 2002:a63:658:: with SMTP id 85mr12871177pgg.373.1546912764492; Mon, 07 Jan 2019 17:59:24 -0800 (PST) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id p2sm93942693pfb.28.2019.01.07.17.59.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 17:59:24 -0800 (PST) From: Ryan Case To: Greg Kroah-Hartman , Jiri Slaby Cc: Evan Green , Doug Anderson , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Stephen Boyd , Ryan Case Subject: [PATCH v2 4/4] tty: serial: qcom_geni_serial: Use u32 for register variables Date: Mon, 7 Jan 2019 17:58:38 -0800 Message-Id: <20190108015838.166271-5-ryandcase@chromium.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog In-Reply-To: <20190108015838.166271-1-ryandcase@chromium.org> References: <20190108015838.166271-1-ryandcase@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use u32 rather than unsigned long for register variables for clarity and consistency. Signed-off-by: Ryan Case Reviewed-by: Stephen Boyd Reviewed-by: Evan Green --- Changes in v2: - Updated commit message - Updated missed rxstale variable drivers/tty/serial/qcom_geni_serial.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 626bf7d399aa..6d8a44c12596 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -760,12 +760,12 @@ static void qcom_geni_serial_handle_tx(struct uart_port *uport, bool done, static irqreturn_t qcom_geni_serial_isr(int isr, void *dev) { - unsigned int m_irq_status; - unsigned int s_irq_status; - unsigned int geni_status; + u32 m_irq_en; + u32 m_irq_status; + u32 s_irq_status; + u32 geni_status; struct uart_port *uport = dev; unsigned long flags; - unsigned int m_irq_en; bool drop_rx = false; struct tty_port *tport = &uport->state->port; struct qcom_geni_serial_port *port = to_dev_port(uport, uport); @@ -844,7 +844,7 @@ static void qcom_geni_serial_shutdown(struct uart_port *uport) static int qcom_geni_serial_port_setup(struct uart_port *uport) { struct qcom_geni_serial_port *port = to_dev_port(uport, uport); - unsigned int rxstale = DEFAULT_BITS_PER_CHAR * STALE_TIMEOUT; + u32 rxstale = DEFAULT_BITS_PER_CHAR * STALE_TIMEOUT; u32 proto; if (uart_console(uport)) { @@ -943,14 +943,14 @@ static void qcom_geni_serial_set_termios(struct uart_port *uport, struct ktermios *termios, struct ktermios *old) { unsigned int baud; - unsigned int bits_per_char; - unsigned int tx_trans_cfg; - unsigned int tx_parity_cfg; - unsigned int rx_trans_cfg; - unsigned int rx_parity_cfg; - unsigned int stop_bit_len; + u32 bits_per_char; + u32 tx_trans_cfg; + u32 tx_parity_cfg; + u32 rx_trans_cfg; + u32 rx_parity_cfg; + u32 stop_bit_len; unsigned int clk_div; - unsigned long ser_clk_cfg; + u32 ser_clk_cfg; struct qcom_geni_serial_port *port = to_dev_port(uport, uport); unsigned long clk_rate; -- 2.20.1.97.g81188d93c3-goog