Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3784484pxb; Mon, 21 Feb 2022 05:45:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJykl/Uj5LOxbaF4bZE10cI+e0XFcOrb8LUCQjJAjCuoNwUt9ifZRc256aOxbLXg5CuQpIzm X-Received: by 2002:a17:902:f686:b0:14e:e441:b76b with SMTP id l6-20020a170902f68600b0014ee441b76bmr19005145plg.146.1645451141733; Mon, 21 Feb 2022 05:45:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645451141; cv=none; d=google.com; s=arc-20160816; b=L3rbMIVSJ2EeVRSRaBqgWMIdQ77sto2WTwQVKCXdlHnlfxN4ZPQYRnPtjIXf8GNd6z o+mCZ3C9nq1LZYoUT7kXCn+L57NFRJJYLik4T9JS0d0Uryf2LZ45lh++CN2eEGc0s0yL z3atIWsJS4kHpLUNBiSDTgbA4MB081QRwsBNZUYV3z6Lpfj0DElgoUZDRl58BWqqf8YN uSvcAiETwds019Fvww+gLbeFM8MV5vgZL2aNYCnQcyw/OOSHYXCOvsC4FEueYm6DWQWn KNFTTEqVvgOZOMfISITY+/W+tHzmfb5yXAGDMU/6GPVEFme1d8htEBAgXNbVlOQ2moz6 gR6w== 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=BUHjRq3B/3JjsHlcHc+UiOV+3YaaqpA1vvTF3QO9238=; b=f69Ad1TUM1o6bgmk5+owKbl9W7zzNtBat+d/Vg5D9sElXW1USSr9n99zo17e1mvSLU PYx6W/CqI6t5r7Novg4jnXUI8oigtSEFx3WYc+2egJix16F/dWsQtWS9+IlF9MdaPsCe xr2waqtAz+IbEmVKdN5Pe18/QVV+F+rlVTx23zakeAdtTVr/1j/1on8109O0Bw2Bu/M0 L0oxvus7GAqzlohbB3j0k1Vt115Ed3BKtshGuCikYkLTY7z85jCxL2YPU7KJjZ8TF9bf 2qEV0BPh5oRvtb7kLw2UYz/4u2Aphp8PefYZy2B4jQeMgFJ/w+Wp74vzdNYLrN0qHpyD taMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="vdfH/Ovh"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18si1510227pgb.696.2022.02.21.05.45.25; Mon, 21 Feb 2022 05:45:41 -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=@walle.cc header.s=mail2016061301 header.b="vdfH/Ovh"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346280AbiBUI5E (ORCPT + 99 others); Mon, 21 Feb 2022 03:57:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345176AbiBUIyR (ORCPT ); Mon, 21 Feb 2022 03:54:17 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D458237DA for ; Mon, 21 Feb 2022 00:53:06 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D92182244E; Mon, 21 Feb 2022 09:53:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645433585; 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=BUHjRq3B/3JjsHlcHc+UiOV+3YaaqpA1vvTF3QO9238=; b=vdfH/OvhQyTtwC7He9ScJnyd+hVKg502zpZwWK34kxIcgMP0SxIGP8BhTIgvCVWWLJCHHe oQUV7aizVde26VPe6G697TxbT5s7W70idQTy+ege+PTyAYPzNPiobRAUdNvLGnVgqp1cV1 1rbI8OCpMMoPn1Y5g62uo7PChgcULbg= From: Michael Walle To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , yaliang.wang@windriver.com, Michael Walle Subject: [PATCH v3 32/32] mtd: spi-nor: renumber flags Date: Mon, 21 Feb 2022 09:52:36 +0100 Message-Id: <20220221085236.1452024-33-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220221085236.1452024-1-michael@walle.cc> References: <20220221085236.1452024-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 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 As we have deleted some flag, lets renumber them so there are no holes. Signed-off-by: Michael Walle Reviewed-by: Tudor Ambarus Reviewed-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 2130a96e2044..b7fd760e3b47 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -12,20 +12,20 @@ #define SPI_NOR_MAX_ID_LEN 6 enum spi_nor_option_flags { - SNOR_F_HAS_SR_TB = BIT(1), - SNOR_F_NO_OP_CHIP_ERASE = BIT(2), - SNOR_F_BROKEN_RESET = BIT(5), - SNOR_F_4B_OPCODES = BIT(6), - SNOR_F_HAS_4BAIT = BIT(7), - SNOR_F_HAS_LOCK = BIT(8), - SNOR_F_HAS_16BIT_SR = BIT(9), - SNOR_F_NO_READ_CR = BIT(10), - SNOR_F_HAS_SR_TB_BIT6 = BIT(11), - SNOR_F_HAS_4BIT_BP = BIT(12), - SNOR_F_HAS_SR_BP3_BIT6 = BIT(13), - SNOR_F_IO_MODE_EN_VOLATILE = BIT(14), - SNOR_F_SOFT_RESET = BIT(15), - SNOR_F_SWP_IS_VOLATILE = BIT(16), + SNOR_F_HAS_SR_TB = BIT(0), + SNOR_F_NO_OP_CHIP_ERASE = BIT(1), + SNOR_F_BROKEN_RESET = BIT(2), + SNOR_F_4B_OPCODES = BIT(3), + SNOR_F_HAS_4BAIT = BIT(4), + SNOR_F_HAS_LOCK = BIT(5), + SNOR_F_HAS_16BIT_SR = BIT(6), + SNOR_F_NO_READ_CR = BIT(7), + SNOR_F_HAS_SR_TB_BIT6 = BIT(8), + SNOR_F_HAS_4BIT_BP = BIT(9), + SNOR_F_HAS_SR_BP3_BIT6 = BIT(10), + SNOR_F_IO_MODE_EN_VOLATILE = BIT(11), + SNOR_F_SOFT_RESET = BIT(12), + SNOR_F_SWP_IS_VOLATILE = BIT(13), }; struct spi_nor_read_command { -- 2.30.2