From patchwork Sat Nov 12 21:21:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel L. Somlo" X-Patchwork-Id: 19245 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1432255wru; Sat, 12 Nov 2022 13:22:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5VfJl8XH9T2n7Tog+bJDhJxQfXhk1hu+AN7J8iBZ0vvGUseqUCEkN1ACwErGZmbErVLk54 X-Received: by 2002:a17:906:7fd8:b0:7ad:902c:d1d6 with SMTP id r24-20020a1709067fd800b007ad902cd1d6mr5872225ejs.143.1668288164190; Sat, 12 Nov 2022 13:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668288164; cv=none; d=google.com; s=arc-20160816; b=WYDwOx19oQj3TjnFhog/EthGsYJ++aOsC6AjJzDB9xYwEMAoiR/F6/aULuucsXuj/M kXcMl6u2sYRL5xZstBVIfmj59Y8HW8Ieatuy16A/xozrKY7posrnqBnhyCLVjB2+AL1J Pbfdm1znsr9TIX60RMga7Bkff7lTN3YGsRl+Buc3IWHGhLmfb54ea2KYyBohbCu6nBBC IhN8h8iAQsQDeBmAXlYmmEGERIvAoi8WVUU7/SCNwn22BWKrKGwqdT8XdhZwY06b0ODS BkTNnAzPbl+Xt7gaX1bcrK/n60y2i97ELfNcIOZr+xwbMRNmFM2YZQZGxEV/l8j/XLuu Vt5g== 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:cc:to:from :dkim-signature; bh=8WawqzZk7R2Fk2wsVcJJHQ6DiWGY8oW1x9eP6skVjzc=; b=Jo1abLY/Uzh2BQkikmx5O6efGNu7jFIg9UcMSDHFCgViwEyqNAxNsX2dgUtG1sBjHY a/Tm5yzcym0EyVHziRc34gcxPGbdku8HFXBGvKLQxsbqq5rjQ8o75A766uYHoCQtBiGv 0Nk+6XN5bmpB98Nj6kwNbze3Vs47V8TOZBHkeD6awP0/LwzTSfTGeIli4GfiiB2ysPGa Mk5xC30cqQT//GHSYzsD4v6Kx3O7QyEyJVu6mcgD3/hj8YnqHPbnsSbl4zgtOiNvbgJz LXihQrWAUcqxNS0HMSUK0sKOir0olfAEUDZGDn3IXumX22B2UKoeElZF6QapC+NmbXdb kqUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=erGeth7X; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb6-20020a0564020d0600b0045d0660a039si6540777edb.316.2022.11.12.13.22.19; Sat, 12 Nov 2022 13:22:44 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=erGeth7X; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235127AbiKLVVs (ORCPT + 99 others); Sat, 12 Nov 2022 16:21:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235076AbiKLVVh (ORCPT ); Sat, 12 Nov 2022 16:21:37 -0500 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1896E15805; Sat, 12 Nov 2022 13:21:36 -0800 (PST) Received: by mail-qv1-xf29.google.com with SMTP id h10so5668091qvq.7; Sat, 12 Nov 2022 13:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8WawqzZk7R2Fk2wsVcJJHQ6DiWGY8oW1x9eP6skVjzc=; b=erGeth7XdHfXrFpCTX/lYo73hGW1D0dqNev6FMVSG8CXXdRMZY3tyotII4xjilTBnY DUwUs6FCzhgnK/+2inHdJR4d5Fqr0tzu+z0KP4/OfNsMpduXbPI+5LsCmgi/R884m74x ktisuAj80uxFVLsCExMjSCtXIYOR3B9gwTWRBGQL8Wu3KNsutn9jKvV5OBHA2khtu1zd ZhLbcrELCGQSBxlQcAaDqcHtUrgFoRgKj7KH0j6n/3HseYf2xcqsVBjCUS2KlgruBQto eeXACw+hW92+l04OVRSlsE1cd0D+9YuAIUj1eKSQAKNzCGX0nXRtkC+JJJhzriIZgfvI QkvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8WawqzZk7R2Fk2wsVcJJHQ6DiWGY8oW1x9eP6skVjzc=; b=Mk+aDpZX2sB483Z7XacpiVTBvKsay5cuv9RmzuBitr5HPeOwUDggKlNZON20n0pMs7 JrR/3ku7oXMZAHkhAPSTS2yKaA5isqnGmF7f7lYKSJOm1MuduXcgPIldU6C/W7B6Ppek cjnuC0J54r0npiljrljRrCHE1DkPmqSM8Kgf3yJsY1j0eA5S6bnt95zC9MJBfSJVK9Wn ajaj8bSucmNWz5gpTjgJCC/x/E1DtzcAfNM3c5VqhVk4OVAbW4vVzNktUFywLYsDLGg/ klhT6DKWgoomw9qRVkAadxbPVIy7nDYRw+Bf08UHtNHoAR1ZZpSY2Zjcx9B8y4LNhO83 KBuw== X-Gm-Message-State: ANoB5pkzapBo7WYQ+hWNHd9ec9JibjkJhBhHWyQbSVOTof/WiHlE+W0G tyAuDsF8Ie+s7GkQzrlIeKDMD0hSZaUD6w== X-Received: by 2002:a0c:f951:0:b0:4bb:b2b1:c10f with SMTP id i17-20020a0cf951000000b004bbb2b1c10fmr7204628qvo.64.1668288095476; Sat, 12 Nov 2022 13:21:35 -0800 (PST) Received: from glsvmlin.ini.cmu.edu (GLSVMLIN.INI.CMU.EDU. [128.2.16.9]) by smtp.gmail.com with ESMTPSA id t8-20020a37ea08000000b006fa313bf185sm3811839qkj.8.2022.11.12.13.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 13:21:35 -0800 (PST) From: Gabriel Somlo To: linux-kernel@vger.kernel.org Cc: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, kgugala@antmicro.com, mholenko@antmicro.com, joel@jms.id.au, david.abdurachmanov@gmail.com, florent@enjoy-digital.fr, geert@linux-m68k.org Subject: [PATCH v3 04/14] serial: liteuart: don't set unused port fields Date: Sat, 12 Nov 2022 16:21:15 -0500 Message-Id: <20221112212125.448824-5-gsomlo@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221112212125.448824-1-gsomlo@gmail.com> References: <20221112212125.448824-1-gsomlo@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749326929926410218?= X-GMAIL-MSGID: =?utf-8?q?1749326929926410218?= Remove regshift and iobase port fields, since they are unused by the driver. Signed-off-by: Gabriel Somlo --- drivers/tty/serial/liteuart.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c index 90f6280c5452..5b684fd198b7 100644 --- a/drivers/tty/serial/liteuart.c +++ b/drivers/tty/serial/liteuart.c @@ -264,9 +264,7 @@ static int liteuart_probe(struct platform_device *pdev) port->iotype = UPIO_MEM; port->flags = UPF_BOOT_AUTOCONF; port->ops = &liteuart_ops; - port->regshift = 2; port->fifosize = 16; - port->iobase = 1; port->type = PORT_UNKNOWN; port->line = dev_id; spin_lock_init(&port->lock);