Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4308447imm; Mon, 17 Sep 2018 11:35:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaIdHFT+qhEWJpxGSzPt52t2uP1J/hi+dBG2giQZylnr0ljGr92MATKWxYATE0IfS+c6Lko X-Received: by 2002:a62:c182:: with SMTP id i124-v6mr26975377pfg.248.1537209326440; Mon, 17 Sep 2018 11:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537209326; cv=none; d=google.com; s=arc-20160816; b=sC3q5WBLkPg4QHCBK0hhH7P9jBJFCZG+/obSBlEoPpw4vo7TFXb5Qd2rSYkyN8IUC/ MrG6LGyQtY5ZctxBMMgfxyQ/q+VbBmA4qawntldWxGWnKusuEHbT/INvR1ZWACFZziiA dgEE2zl9YMCwTM+YwvGAfbc4ozgLL4a6D/M/BzvrrNNNl5IHL2/OtPZDpO6R7wRYdyxm RdeH15i1IwvleGQU4napZ2/WxEU/c4A70HpNmBWxxE6YIH3Z7bUvNC4cCv5s1+irNceC tUfrh3kwKmBRqCgS9FmXWOSHicdXiCj6D+BaxkgUJVwrdONO/OxYAWcWhdoiynri61n5 xSTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=B0zBpssfvxrtSCSyQbtyOm38bQlWUmZUf/lgu2ZUuu8=; b=ieO6vwMlUVvZP9X3uK1tPHKzUEVw5XjzuPYXogxVdRtsTx0vRvLxhkNCK42xskDqff evjIrb/cvFCyQqm04mwt186CTtATu58Ak7yqhksXE34NurAXRKGeT+X1bcz69dfw8K7+ GtLSfZ2eckBJhp8Bj1iAK5FTh8zVm2CjR/vet1KQt2QXp/UZ/EaT4Z8crFpE+7wLkHdT tNzD+QGAVXGdUQkP6gYlc6IyX517ve/V/UGBzC3gYB4zEHY8Ik9WlAFxDooipDJhlfkm uPFyCg1i8XrGZeHgZcXtuatMMF5qjjTB6tJRMPFVsC0Kpms4J3UCTPtPa+Kayjb/qCzE IOgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gydhJQmQ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn18si16634869plb.500.2018.09.17.11.35.10; Mon, 17 Sep 2018 11:35:26 -0700 (PDT) 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=@linaro.org header.s=google header.b=gydhJQmQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbeIRADH (ORCPT + 99 others); Mon, 17 Sep 2018 20:03:07 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34342 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728299AbeIRADG (ORCPT ); Mon, 17 Sep 2018 20:03:06 -0400 Received: by mail-pg1-f195.google.com with SMTP id d19-v6so8088697pgv.1 for ; Mon, 17 Sep 2018 11:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=B0zBpssfvxrtSCSyQbtyOm38bQlWUmZUf/lgu2ZUuu8=; b=gydhJQmQB9w8ls3zQWkNha1rmmvVTOnARsOVMj4ZvhJhMzm9Xe/ArVavuZd74PwTxn Tm+dcT/GYyJlf8SzmUoXuHTBtkcLZrf8X5hTIbucDMWR5qhbRxAJd8YHWLBa3qt94Fpo RYC8jIw7x/VCC9WtLCVKC7n3Z3IXqSkbyO948= 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:in-reply-to:references; bh=B0zBpssfvxrtSCSyQbtyOm38bQlWUmZUf/lgu2ZUuu8=; b=C33VDx3Ddz1UfueUOLUiqlAnVN6LMzLvOrN3ntU2pisjKdukKT+MXMUntMg3h7FA7u T/CB7E/C92sDjXgjVRTRsM70nMicn/7NeR6rNH1DIP6ANJ3Gght3GzWibPFr+m+OcPU0 xP+Eeh0qQeqAlWiA896ffftPHejXSJ5BuPqT+rlrUJG+l4jlYQpzAH5GxwyWh5q/swNp /2SA5c+HVgeuKmIz3iWNaS8L8xtFTKCkC7akXG26FsXisyXY3AzVSv8kPLj5wrTAP5rX 8+SK16rI7/sYrEAuy56OQwx5xgclwVVO8RrXxByBf+fWUQ1GxvnAY2cy96tVWrGpSsQB kZ+A== X-Gm-Message-State: APzg51D4vpqoO7xltU2N6EZlcZvh9n/XlDdrl72/lOkVN4zaLS5DUKhe g0vhxgoVFZT106bA3PKO4kyZXg== X-Received: by 2002:a62:47d1:: with SMTP id p78-v6mr27118912pfi.197.1537209273296; Mon, 17 Sep 2018 11:34:33 -0700 (PDT) Received: from ubuntu.localdomain ([209.82.80.116]) by smtp.gmail.com with ESMTPSA id i7-v6sm17544137pgs.17.2018.09.17.11.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Sep 2018 11:34:32 -0700 (PDT) From: Baolin Wang To: gregkh@linuxfoundation.org, jslaby@suse.com Cc: orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, broonie@kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] serial: sprd: Change 'int' to 'unsigned int' Date: Mon, 17 Sep 2018 11:33:43 -0700 Message-Id: <7167a2917e6469e7d7a04fa4558f3486b8294722.1537208449.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <96e34fdadaf3f354f5d8e0d2895508e7c7918839.1537208449.git.baolin.wang@linaro.org> References: <96e34fdadaf3f354f5d8e0d2895508e7c7918839.1537208449.git.baolin.wang@linaro.org> In-Reply-To: <96e34fdadaf3f354f5d8e0d2895508e7c7918839.1537208449.git.baolin.wang@linaro.org> References: <96e34fdadaf3f354f5d8e0d2895508e7c7918839.1537208449.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The register offset value should be 'unsigned int' type. Moreover, prefer 'unsigned int' to bare use of 'unsigned'. Signed-off-by: Baolin Wang Acked-by: Chunyan Zhang --- Changes from v1: - Add acked tag from Chunyan. --- drivers/tty/serial/sprd_serial.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c index 03b0cd4..8d5c9cd 100644 --- a/drivers/tty/serial/sprd_serial.c +++ b/drivers/tty/serial/sprd_serial.c @@ -109,12 +109,14 @@ struct sprd_uart_port { static struct sprd_uart_port *sprd_port[UART_NR_MAX]; static int sprd_ports_num; -static inline unsigned int serial_in(struct uart_port *port, int offset) +static inline unsigned int serial_in(struct uart_port *port, + unsigned int offset) { return readl_relaxed(port->membase + offset); } -static inline void serial_out(struct uart_port *port, int offset, int value) +static inline void serial_out(struct uart_port *port, unsigned int offset, + int value) { writel_relaxed(value, port->membase + offset); } @@ -598,8 +600,7 @@ static void sprd_putc(struct uart_port *port, int c) writeb(c, port->membase + SPRD_TXD); } -static void sprd_early_write(struct console *con, const char *s, - unsigned n) +static void sprd_early_write(struct console *con, const char *s, unsigned int n) { struct earlycon_device *dev = con->data; -- 1.9.1