Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1535130pxb; Fri, 18 Feb 2022 09:42:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpXlFjwxryg5s4fxU3JChIem+DUzH7hhLK0yy78UrLfGRTY/w7Nq4uHk5h/ThIskKrjVsa X-Received: by 2002:a17:906:40c9:b0:6ba:6f72:dd3d with SMTP id a9-20020a17090640c900b006ba6f72dd3dmr7340951ejk.373.1645206167070; Fri, 18 Feb 2022 09:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645206167; cv=none; d=google.com; s=arc-20160816; b=eFqfoMapYf5vyeBxvzfogqS0DtiMUdeVG30cqMjzl8/GPNk+yD7Oxf11nIvjbK54SO BhFilELALIUd+M6LQZfzXyvnvyo0cXh5StRW0sKMOTw9ceWLMLQTfM1CWZAG4ssKL9Xi fAqoRx2xvwgm2fCzn1Vf0+QRd8/9PfLrJoFHi/dZwuSAGLYM3nCdFF6tK4v3Dtrp9jLT yoPrvVwDr7c6s8+XXYrboYANHkhw4syK3+4vUcguknHft5h8fpzjK0R2yr8mxVOafA8l pcC1FmAYeqOs/SUg0jMcU/NDhX2cAoSl50RrC0OMXZJKpXUgVA285U2iK1KIc6jPBIUY scMA== 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=eU/o1/wSK6tKw8oMFHTs0e9kfwBwtSct13Nk3IepomCBzb843R9NweqJKGKpPACwPL 0voGXM1HS+nYIeqcuxq3DP0HChvnsJrQrqoMlBtYcp2+CjvqgB+GlHfHMdmot8q1tQ9n dSGcatY4xkM1Q1uZWKuzVdoXJLsyhUK/ovFA7rfeDteRJn2zOihdnIDJinFWWZqzJ8Io NAJQ3yIIPzDrjlLEGYixOHQTeFFcxwhqh6vwbFxZbqHAqJD6I1vUMm8QadTJ+B7mXexu mWxQ9BeMxo01OyXosAgWKBEEyiku5+QlMS71EYsUoC9Ke6qFWdJ8KyY9IiKJEnvrg2Gu 4lfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=lpT1iVQh; 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 u15si7093756edt.144.2022.02.18.09.42.23; Fri, 18 Feb 2022 09:42:47 -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=lpT1iVQh; 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 S234864AbiBRLiY (ORCPT + 99 others); Fri, 18 Feb 2022 06:38:24 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234595AbiBRLgq (ORCPT ); Fri, 18 Feb 2022 06:36:46 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 675D72B0B09 for ; Fri, 18 Feb 2022 03:36:26 -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 87BE822499; Fri, 18 Feb 2022 12:36:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645184184; 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=lpT1iVQhPXm3vUE9TXeOpRJhoSe99674SILS92fQum4IZi7clBskLLUojHyhI1D5w0S7FO VgGpd9X+eq6kk/UHB1BpjMomIhMwCiKxdm/bw4/ZAHYWoN+iE7f1SD1VrABFvVw0KEyFS9 VrRziIwddC01kSe99qXPEaUDpTNAS5E= 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 v2 32/32] mtd: spi-nor: renumber flags Date: Fri, 18 Feb 2022 12:36:07 +0100 Message-Id: <20220218113607.1360020-33-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220218113607.1360020-1-michael@walle.cc> References: <20220218113607.1360020-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