From patchwork Fri Jan 13 07:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 43050 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp139749wrt; Thu, 12 Jan 2023 23:53:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXs8ThetYyx4+KlRMZZaisudD+fpJ1pKBFBJPHvWcxyoQv+YNCbMdmjluNdC6cvPA9O3btnE X-Received: by 2002:a17:907:7b8d:b0:84d:4e79:e7a with SMTP id ne13-20020a1709077b8d00b0084d4e790e7amr19031122ejc.74.1673596409634; Thu, 12 Jan 2023 23:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673596409; cv=none; d=google.com; s=arc-20160816; b=hoe8zvpFOXN8/Y9++drbKSwKJICOl+Qfi85WbRVW3bnGbumI/YXCDjDYkMaSbgqIGP TKej6ii4q5iPR45cPabO3SH3qgf+YuZAtHCG5ZUf3Iz4ZmOzJXXJgRbZ8fkID6+4o/iS MYjeC58gaDLdf0W20022N9LUW+pgkuJRFCRMd8d+e3orYuiqIg1C0ssRXDkSzpjLx/rF OfiMW1vJtA0HzSifpbqYTOAdYz8lwENTmmCpuRVwx/mpssYmbpbYi2AM4MgCRm/Qud2F GUp/Cc/Na9dQJc9618cYX29zBfKZYfJZH89IOw55Q9uVs9u7BbCX5qgyD4LiTIglRPuu JLjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=Ki/D1WUy5ryn68f131sCexKZ8Uw0CRINUHMpMThw1h4=; b=JhSsB967E80tflzeNnEKV6CR6tx41VsLtoxxssmkY7iUvWzljm6kPfVqeqg7wZBy2G LgaXWZnnfyGSweaI6RXqtjugzGOkKcRlj+DQ0sYN1e7IQhfOs95MsgoDstfl4feT0Wee XwJy0ebZKsvry5ri9Waqtg1fFc76lGv6BOroQzb9rWkRVYJxurcBPnUbj4VamGZwcj6v sg/IwHdRg/zZ6Hxt6P2hlWfEg5/QAoEvE3J8dwr4fHRr2m+QdWZQmcroxrokVBEoNa3e LMCuXSXxtKYdlZXzy0K9GYiFRiDrFeRX2420XhGzyGAewIxLRtmIEBClnWXrqQVZmdel pr6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MrZqIjlJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu2-20020a170906eec200b007a92b00c094si18597400ejb.421.2023.01.12.23.53.06; Thu, 12 Jan 2023 23:53:29 -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=@gmail.com header.s=20210112 header.b=MrZqIjlJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234960AbjAMHtq (ORCPT + 99 others); Fri, 13 Jan 2023 02:49:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbjAMHtm (ORCPT ); Fri, 13 Jan 2023 02:49:42 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8DF1A822; Thu, 12 Jan 2023 23:49:41 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id l22so20663095eja.12; Thu, 12 Jan 2023 23:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ki/D1WUy5ryn68f131sCexKZ8Uw0CRINUHMpMThw1h4=; b=MrZqIjlJU54cg2457lOD+lg384HK6gA1Nb9CBdGUiKfgYsB14QaQX61r9OtNwotQKB THMs47B1dqPWxYTr7sgoDSVTHBgACpbIVVlRD715H+brWuzh91B9W8j1cR3TIFJgGVk4 lq4oEcRbrZIjFGCgcACACa7pmQA9hjXwKnhpL4wZ7lvSSniEIcS50+UyxUdlpY/+nx/K niXvF292CD8sS4XkYXPBxMNf2xgeYY9W3FderhTHx6nJkpsr75YA78XAgzXB+Ku21Cdn 729M2KRBmulaAjdScbAqLBaR2faFc9g0J8W7vjpqnHrrQcHe8m71av87l8YRblaxALpj IxAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ki/D1WUy5ryn68f131sCexKZ8Uw0CRINUHMpMThw1h4=; b=YN8T2x9KkPCciKokUiSYgsfc1LLsytuWb9PdalQ8aPaoAf1G2TEiueIOrPYxLo/AXB qScAIKA4kiuf+d+Es6XTeMV18BC7Hcy6mRLXURwvrKKidq9gPGC4X8DAMOMstkWi/ogJ di/P6B6dRUvRl+voK6OuywHFCF0UWU98A9eNbKM9DPmKOL0K2D9oT8nN+7VxE53LWpNw zSZ6KN097I8mL5wj5n5xfAQs2Mm7qet8gCpUVP+7ti0A78UTGd3a1EvFyh40KHS/qer7 RmO9v7x/avwBlmWANpr43FXcf2AJIXt1ue2XUeH4dU7DCNe2zz5dpu5SzN6DO52OpDzY +3Hw== X-Gm-Message-State: AFqh2kpX266Z54lfjM9XKKKDkP9U5DnsE8PtmvyBrQNxoxEffTFWdI3f WN/dqbhlOAz0hn1rGwDuQc8= X-Received: by 2002:a17:907:c48d:b0:7c0:aafa:6dc0 with SMTP id tp13-20020a170907c48d00b007c0aafa6dc0mr52745239ejc.25.1673596179964; Thu, 12 Jan 2023 23:49:39 -0800 (PST) Received: from felia.fritz.box (ipbcc1d920.dynamic.kabel-deutschland.de. [188.193.217.32]) by smtp.gmail.com with ESMTPSA id 18-20020a170906319200b007c1651aeeacsm8246555ejy.181.2023.01.12.23.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 23:49:39 -0800 (PST) From: Lukas Bulwahn To: Herbert Xu , "David S . Miller" , linux-crypto@vger.kernel.org Cc: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH] crypto: atmel-i2c - avoid defines prefixed with CONFIG Date: Fri, 13 Jan 2023 08:47:15 +0100 Message-Id: <20230113074715.32016-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754893028831414276?= X-GMAIL-MSGID: =?utf-8?q?1754893028831414276?= Defines prefixed with "CONFIG" should be limited to proper Kconfig options, that are introduced in a Kconfig file. Here, a definition for the driver's configuration zone is named CONFIG_ZONE. Rename this local definition to CONFIGURATION_ZONE to avoid defines prefixed with "CONFIG". No functional change. Signed-off-by: Lukas Bulwahn --- Herbert, David, please pick this clean-up work into your crypto tree. Thanks. drivers/crypto/atmel-i2c.c | 2 +- drivers/crypto/atmel-i2c.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c index 55bff1e13142..66e27f71e37e 100644 --- a/drivers/crypto/atmel-i2c.c +++ b/drivers/crypto/atmel-i2c.c @@ -59,7 +59,7 @@ void atmel_i2c_init_read_cmd(struct atmel_i2c_cmd *cmd) * Read the word from Configuration zone that contains the lock bytes * (UserExtra, Selector, LockValue, LockConfig). */ - cmd->param1 = CONFIG_ZONE; + cmd->param1 = CONFIGURATION_ZONE; cmd->param2 = cpu_to_le16(DEVICE_LOCK_ADDR); cmd->count = READ_COUNT; diff --git a/drivers/crypto/atmel-i2c.h b/drivers/crypto/atmel-i2c.h index 35f7857a7f7c..c1fdc04eac07 100644 --- a/drivers/crypto/atmel-i2c.h +++ b/drivers/crypto/atmel-i2c.h @@ -63,7 +63,7 @@ struct atmel_i2c_cmd { #define STATUS_WAKE_SUCCESSFUL 0x11 /* Definitions for eeprom organization */ -#define CONFIG_ZONE 0 +#define CONFIGURATION_ZONE 0 /* Definitions for Indexes common to all commands */ #define RSP_DATA_IDX 1 /* buffer index of data in response */