Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3943168rdb; Mon, 11 Dec 2023 04:49:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2qLaxi1WAczUYmiFogqmMRGYoayjobMeMgwqFQTKIor1qMeRyZy6sccLJXyoiwRNwD110 X-Received: by 2002:a05:6358:e48b:b0:170:cb5d:8102 with SMTP id by11-20020a056358e48b00b00170cb5d8102mr2947670rwb.22.1702298986470; Mon, 11 Dec 2023 04:49:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702298986; cv=none; d=google.com; s=arc-20160816; b=XOODFPrlP1I5KvVxMSwHMIt5F3zhsqH+f65ZJBMFSpJfURUnJxUDcuw0Uuw2ZNWxwd RBRvszpuhZz49rQ8+Zjgw/OpUaON52v9K4IMR215GoLf+rP1fPHNE35SbJ2NUBy02k/5 ZNjM7w+Ezugm1/Q29TZtJ1/OvOCirYu6FPUwiyAev1ro8QvlB7UzqkKsnvElFHyDwTnS /+Krk6o5W2dmcFL9Zs+xxH50h0SJhBTaOUK+kvWY+LZtmfdzg0k02aHj1oEZq6rU/Umu c+BFQAsugFs44J19YRwB9K7UuELMyuPlbOfv/rf2Xy+YFIXNZNTZuOuqTpnZyLd2MX8Z +TDA== 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:dkim-signature :dkim-signature:from; bh=QZzKwjWTDOK+X7Q3TY/aJqPSWaSZ1XBXSEY0XUeQD/0=; fh=FpEFgSTsD9KOdZrv5i/8e/czx6Pnhsq5lU2kOotSX/I=; b=wbmPuTDH8g2HOtRB+jJtnpPm8plNRGW7zqf3CZgQ/8F48KgedIAt8hs4NKVQUoalNb jNu9sehd3d1l/DvNlhThN73YkdquCmlJE8uckI97T6ph/FPEe06L658VCqY4dFRJrL+T eEk98Tl88WYnClq7jbvF7g6wjOEDErJVJiRkscTjo9aZ5vbNTO4iNoGmBOvvdNMeHv2O 45T/mK0MbOO0bWuNfDNIb3k+6zWRkWuaQPp/Fmt5ZEyHk0Z5/Hnjtlz/Autg+4pPg8PL f345vGBe+VptQLg5HhWTZczG/8slln8nV6aquwoaHFf5vnRdYOV5kdGXbWWozObQeAgm Bl/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1XFw6mvY; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r130-20020a632b88000000b005c6faf0a669si4673940pgr.285.2023.12.11.04.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 04:49:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1XFw6mvY; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 51BB58097178; Mon, 11 Dec 2023 04:49:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234839AbjLKMtU (ORCPT + 99 others); Mon, 11 Dec 2023 07:49:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234810AbjLKMtU (ORCPT ); Mon, 11 Dec 2023 07:49:20 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59792B0; Mon, 11 Dec 2023 04:49:26 -0800 (PST) From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702298965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QZzKwjWTDOK+X7Q3TY/aJqPSWaSZ1XBXSEY0XUeQD/0=; b=1XFw6mvYpdeNplzdWtSzeZwOA3ynoBpM7WEEQXZOxHeokczKH5c6iWlNF1Up6TbIN7FlQS TdTo8Lqk8H2im4WQURr5PW1mVg10ATrC3DO5ZrGJwDOrR5JPBxKIO7LwDzL4o3N1+2FEzO qaH9Qxks5Abxpyp+ck2ICtCRQVUMCE2s7d5FM7RMNeh5uVXQA+zjA1RBIybA95o1QudDqH ngsMSszpQsq8l1J9JleLSI5612kau9EBLhi+cbRhr+L8MFe/4yyfJU0HpKpp7u2lZt6Pzk mrCY+Qr5TdMaBRuKYuY0qYyQE+g/j/eaJmwimjiQb+uoy5Lc6IYAuqepD44wdg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702298965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QZzKwjWTDOK+X7Q3TY/aJqPSWaSZ1XBXSEY0XUeQD/0=; b=TC0ReHNdWwpUHHTLM6SA8IlCg8XtXt/ob1vCrK2zV1HUGyN5JpVRH664ZO3riyPDpU/5P+ CpTHfkqGtftM6dAA== To: linus.walleij@linaro.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: [PATCH 1/2] spi: pl022: delete unused cur_gpiod in struct pl022 Date: Mon, 11 Dec 2023 13:49:14 +0100 Message-Id: <7618c9d714aa1c16c7cb06f9d1fb1c074d1d9c65.1702298527.git.namcao@linutronix.de> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 04:49:44 -0800 (PST) The member cur_gpiod of struct pl022 is not used anywhere. Delete it. Signed-off-by: Nam Cao --- drivers/spi/spi-pl022.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 1e3bd6f3303a..fd21e83cc3a4 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -361,7 +361,6 @@ struct vendor_data { * @dummypage: a dummy page used for driving data on the bus with DMA * @dma_running: indicates whether DMA is in operation * @cur_cs: current chip select index - * @cur_gpiod: current chip select GPIO descriptor */ struct pl022 { struct amba_device *adev; @@ -393,7 +392,6 @@ struct pl022 { bool dma_running; #endif int cur_cs; - struct gpio_desc *cur_gpiod; }; =20 /** @@ -1344,8 +1342,6 @@ static int pl022_transfer_one(struct spi_controller *= host, struct spi_device *sp /* Setup the SPI using the per chip configuration */ pl022->cur_chip =3D spi_get_ctldata(spi); pl022->cur_cs =3D spi_get_chipselect(spi, 0); - /* This is always available but may be set to -ENOENT */ - pl022->cur_gpiod =3D spi_get_csgpiod(spi, 0); =20 restore_state(pl022); flush(pl022); --=20 2.39.2