Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3988671iog; Tue, 28 Jun 2022 06:57:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJJ+EGYbRPrwors4XxQL+s/Lf0qiObHTgGDsqwu8h73cIRCf8lndSm6QJRMt0hfZxxCTwN X-Received: by 2002:a17:902:e052:b0:16a:1257:152e with SMTP id x18-20020a170902e05200b0016a1257152emr3836101plx.172.1656424646082; Tue, 28 Jun 2022 06:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656424646; cv=none; d=google.com; s=arc-20160816; b=0vC6j1VDTUfhmym1IXd8cTMmhWzskXyehX5NagUX7M8R19viO6BOnnZ7Q3kP1yA1u1 LK5ecpc/QmPqHWzBBF6Cocbah6fT9JMOdyn74lAqokTNXpAaf+ebZDfvN9TZ+yHqvMHX J3aXAu4RfWzdVjA2lcq3Vfv/m+aS1uexdStiKs/rxQ5/SG/nAtGaemCHUn6yuwlxMCHg PF7G8x4HZybyL9yy9hYJ2AYwfFp4RYyj84ZRoX0L/gdJL4BL/afJc103+ExiendTob04 YMvuc6S3fHr85oRpneA5zYlWNK0for2SRNSxx4TWnfbc+dYnmUd1EkLG1OgM9aFaVLue FKsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=OR4pCZhDY1g682BlnTmcr26UrL81ufuQ96xVTB9Wl+8=; b=zIfPT2Np4FoSVMPlOHiGJQc45lv8U0lCFXqfGbt0Arx9eVXDtfApu1LLzt+QsscMYF eqKOBvDGdyFa0j31031NwkdRoaOY9zTXBtYorkXdYfmSU+iqJkIrzEj4MXdpNfxvw6ww j64GflHPRBl6kHH7BD8Kq8dzHyWqxPCIugbNLaALZRQloEfHYU9cJss7A5LZKQIvUZX3 mCKBCfJ3ZBShoH+Uz4ea84F83YzsDjGjBMBjAXdW35/zjdKxPhMKNddXTbrBZ4U8Mq09 OUYZtywb8rgebylhI60Odc5nezurbn5AwSSHrxJCKRer0JVaJu+CsnttwQFoKPbQlM7L QZSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=caKpNtdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a17090a4b0b00b001ecdd51ed11si3309584pjh.97.2022.06.28.06.57.13; Tue, 28 Jun 2022 06:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=caKpNtdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346438AbiF1Nm7 (ORCPT + 99 others); Tue, 28 Jun 2022 09:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346822AbiF1Nmw (ORCPT ); Tue, 28 Jun 2022 09:42:52 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAF5827CFE; Tue, 28 Jun 2022 06:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656423771; x=1687959771; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=/YGgMPxrsMSQlXCWrjRM6rpDxigDXo+yUsU1t73bO+c=; b=caKpNtdkSG5a8jfXIozvwCLS1LkXxee/3vBEui9KSx6yssL5lkqiDzic JoC8GnzWeIlt2jOonDtVN9wjFdWBXcFYNS58oTA0GopNzBH7LkqpigOen eDuKX7ptArrRlqlN3far0U4S1gFD4ZVRh2hj0GPKRW/KY/n3CPqoovH0O XrpLD8wg2uo5+wDo4WgGOjGAzvuzGXJIBkvMCxZOdvxzbCFL2IdTjYH10 rrv+EBjEQUq5mthLdbW6iIX2F1O7cKUQufSB0tCatjvXDatJ+ldLPxEf2 KCNfZgo3bsiXAblyOpU8LNVqjrqvCQpOBeDsy/Aj2EpU0nKEKchpmc8Oe w==; X-IronPort-AV: E=McAfee;i="6400,9594,10391"; a="281780641" X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="281780641" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 06:42:51 -0700 X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="646918023" Received: from iannetti-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.251.216.215]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 06:42:49 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] serial: 8250_dw: Rename offset to reg_offset Date: Tue, 28 Jun 2022 16:42:32 +0300 Message-Id: <20220628134234.53771-3-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220628134234.53771-1-ilpo.jarvinen@linux.intel.com> References: <20220628134234.53771-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Get 'offset' variable out of the way of parameter named 'offset', rename it to 'reg_offset'. This is very short lived change as reg_offset is going to be soon removed. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/8250/8250_dw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 41bf063396e4..f18975b4d2c7 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -89,7 +89,7 @@ static void dw8250_force_idle(struct uart_port *p) static void dw8250_check_lcr(struct uart_port *p, int value) { - void __iomem *offset = p->membase + (UART_LCR << p->regshift); + void __iomem *reg_offset = p->membase + (UART_LCR << p->regshift); int tries = 1000; /* Make sure LCR write wasn't ignored */ @@ -103,15 +103,15 @@ static void dw8250_check_lcr(struct uart_port *p, int value) #ifdef CONFIG_64BIT if (p->type == PORT_OCTEON) - __raw_writeq(value & 0xff, offset); + __raw_writeq(value & 0xff, reg_offset); else #endif if (p->iotype == UPIO_MEM32) - writel(value, offset); + writel(value, reg_offset); else if (p->iotype == UPIO_MEM32BE) - iowrite32be(value, offset); + iowrite32be(value, reg_offset); else - writeb(value, offset); + writeb(value, reg_offset); } /* * FIXME: this deadlocks if port->lock is already held -- 2.30.2