From patchwork Mon Feb 12 21:03:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 872403 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="a/mWA6Cm"; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="FEQiWFOW"; dkim-atps=neutral Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zgJ7g59bMz9s7h for ; Tue, 13 Feb 2018 08:04:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3fRqUBzwsO1py2Drk8JbNVpHG2BRpQxiAjupcL72WLc=; b=a/mWA6CmA/RfxjS/YKctCxf4Dv odpM5wGsdmomsjbqG7fNmR3K4tmXoDab2TxaIRWoCchAPhE7BpGhWu+TZmY2n6fnPUdspybV+MiV/ AWT23u962G/RwFeoRvVm+sNvfaZ6g3R5g7Gqwd31WTQyHv4buGf4/zZy7N2yOFZsp22JXxLnKN17z eXfvKnXHR3MPW3IdaoSqb75bmB3vUJaxyKX4SnQn+gnNhtZsYOtV3iGw0mc6zlSc3SkIAv8HcD/mv E0iD17sG7LwbOO8oKjrLM1DQ6mx3jLTQDK23hqsHuZ5Sm2ggVoAH+7UuDUgpkjmdnnYtLb3jnfSBV 6vZ58vSg==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elLGU-0007WD-7j; Mon, 12 Feb 2018 21:03:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3fRqUBzwsO1py2Drk8JbNVpHG2BRpQxiAjupcL72WLc=; b=FEQiWFOWSSmhcin/oiAxfWRhv3 0jUv2VTpFMviSqCp1u/pT8Aqxsg7nr8QbaRFX67RRI1QKw4piz5z35XQqu9ZFE73EQaVZfLYzYNw7 kpoBqDbYsXeTmfrA9ZdZVPFLh5S867u3wGGipFCuGABTn9jbC3Cqs48MORT8Gw5xF2GkwU+/xc0mM JH5NNAY8kFDWlJF3QlikOYfCZauI9Elcc1mWtcAs/jj0hOPAJbR4B7NvfkmDCteCAmTRpSMBVXOeu uKaosQ5VqL670iI3vR2Psrk6WlJU/VsPaP7K8NNP6OtKM7//8WsHrcS9IVZEOHeoy6xXCJsv6uIpQ y+cken0g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elLGR-0006uq-Tn; Mon, 12 Feb 2018 21:03:51 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elLGO-0006tG-G4 for linux-mtd@lists.infradead.org; Mon, 12 Feb 2018 21:03:50 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 9ECF2203B5; Mon, 12 Feb 2018 22:03:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.free-electrons.com (Postfix) with ESMTPSA id 228DA207C8; Mon, 12 Feb 2018 22:03:26 +0100 (CET) From: Boris Brezillon To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org Subject: [PATCH 2/5] mtd: Get rid of unused fields in struct erase_info Date: Mon, 12 Feb 2018 22:03:08 +0100 Message-Id: <20180212210311.23244-3-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180212210311.23244-1-boris.brezillon@bootlin.com> References: <20180212210311.23244-1-boris.brezillon@bootlin.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, Bert Kenward , Solarflare linux maintainers , Artem Bityutskiy , Miquel Raynal , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Joern Engel , Greg Kroah-Hartman , Kyungmin Park , netdev@vger.kernel.org, Paul Mackerras , Benjamin Herrenschmidt , Edward Cree , Robert Jarzmik MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Some fields are not used by MTD drivers, users or core code. Moreover, those fields are not documented, so get rid of them to avoid any confusion. Signed-off-by: Boris Brezillon Reviewed-by: Richard Weinberger --- include/linux/mtd/mtd.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 205ededccc60..2a407dc9beaa 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -48,14 +48,9 @@ struct erase_info { uint64_t addr; uint64_t len; uint64_t fail_addr; - u_long time; - u_long retries; - unsigned dev; - unsigned cell; void (*callback) (struct erase_info *self); u_long priv; u_char state; - struct erase_info *next; }; struct mtd_erase_region_info {