From patchwork Mon Dec 11 12:49:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 752991 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1XFw6mvY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TC0ReHNd" 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: Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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; }; /** @@ -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 = spi_get_ctldata(spi); pl022->cur_cs = spi_get_chipselect(spi, 0); - /* This is always available but may be set to -ENOENT */ - pl022->cur_gpiod = spi_get_csgpiod(spi, 0); restore_state(pl022); flush(pl022);