From patchwork Tue Jun 15 09:01:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 12322135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF98DC48BDF for ; Tue, 15 Jun 2021 15:15:23 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 687DB615A0 for ; Tue, 15 Jun 2021 15:15:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 687DB615A0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wJVDK1nb4E5HqiTXiLH4haoSLpSZs8ifMFShq/Lwk0g=; b=lENo50OqPH+MBm X8f1szgJCgpimMu52boRJh8zVXB7IgwBaHgVqn57gIUifrFQ38ynxBpl/MO70jcOjRctzOFS1Frtp sOuk4EXcO12wkdShgj5y4CEnluCQYxAfyUCoQkhXvy2+w7qIRHyKZ/6miX/19gNXo3/kLSuwR7c8t yhSTjKWF3r5B/+cR6GdNd+YfJN/0+QiHQzmHLurG81b5Vn4vm2ZL++78J3JqmzUMHHuLRCOEj1q3r 98L9TjonxAKEXHdY+ums5zZLnP64/yQEg+9+duI69d5fHDffx8yMTZK/PpjKgroHkNF3ovZBWySKk 80n5tDo7r8u8Pey7XfUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltAef-000pk9-K6; Tue, 15 Jun 2021 15:07:06 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9IX-000DwX-Eq for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:40:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=gRyTEMsNce+t9PzYkspWEzqkwLAdHR7X8GDuQzd9e78=; b=DGxRAbigwPQucR2a64RGMzJOjo E7DfjQr0QdD/F6XlSaQVHWZdXUwwVym9y7SkGrjQyzo9tJs8X79cZZUrc7GY9WhG7hb9L3zTlK5zd 63etASajJCOiptoxVollWvoYhlSOZOunR9AYKAzmQSu+vx2jKHyPgcWOgRb/hgHi+Gvkn1gohKY6C mYcELldfOB615eqaPqNqzvGBFlV/9kK+C5/rJHw6e8/BUzohMuTnzjUBYSoguEHSsKA0rby+j1Sud mmnNtAQ+yR24wmHp48eLdmOj2iccnvMZ1wzpAiFLbP8QOsiubaTIB6WxIdPnw+EcwMmmsfG2h0x1E lY07Yn9g==; Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt4wk-007XVm-85 for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 09:01:30 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15F8wAKp026433; Tue, 15 Jun 2021 11:01:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=gRyTEMsNce+t9PzYkspWEzqkwLAdHR7X8GDuQzd9e78=; b=ZrdAg3V8aKWvXfBxHpiKTuqqFdUfCBSTW/+ytzv+pRLlOzW6osgRxzGdJEU8EEiD5bUZ 3+NEfP7eK2q+310FJz3H77hM6RAMXnTel2BlekFDTubE0L8JOZkBUoBRDdTjHRi7Qekd WXpm0ZYo5NDqogqBBoyR3l2WGM8uD2HxZjhKwE08TugLXtybD4Fd1RypCEkOEuNZ2B3Q YOTzp/WbL6Tp8s/+KBistXOXuBpbwb7ixMGDmlWQOqQSBYY2FVk1Ljciny2TN2eS7Yqm /3dGIYLUJTNU6yMbUqWWviQzP8PmYGvGrrdbGTtJvUlO6l99rh6WhdwoEi9OhdeykVxy /g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 396rb70djx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Jun 2021 11:01:22 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C2D3C10002A; Tue, 15 Jun 2021 11:01:21 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AE4A221B300; Tue, 15 Jun 2021 11:01:21 +0200 (CEST) Received: from localhost (10.75.127.49) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Jun 2021 11:01:21 +0200 From: To: Mark Brown , Alexandre Torgue CC: , , , , , Subject: [PATCH] spi: stm32-qspi: Remove unused qspi field of struct stm32_qspi_flash Date: Tue, 15 Jun 2021 11:01:15 +0200 Message-ID: <20210615090115.30702-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-06-15_04:2021-06-14, 2021-06-15 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_100129_362742_C424B188 X-CRM114-Status: GOOD ( 14.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Patrice Chotard Remove struct stm32_qspi_flash's field qspi which is not used. Fixes: c530cd1d9d5e ("spi: spi-mem: add stm32 qspi controller") Signed-off-by: Patrice Chotard --- drivers/spi/spi-stm32-qspi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index a3ff0edf3eb7..27f35aa2d746 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c @@ -93,7 +93,6 @@ #define STM32_AUTOSUSPEND_DELAY -1 struct stm32_qspi_flash { - struct stm32_qspi *qspi; u32 cs; u32 presc; }; @@ -593,7 +592,6 @@ static int stm32_qspi_setup(struct spi_device *spi) presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1; flash = &qspi->flash[spi->chip_select]; - flash->qspi = qspi; flash->cs = spi->chip_select; flash->presc = presc;