crypto: atmel-i2c - avoid defines prefixed with CONFIG
Subsystems (3)
PATCH 1/1 crypto: atmel-i2c - avoid defines prefixed with CONFIG
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.
---
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(-)
drivers/crypto/atmel-i2c.c +1 -1
@@ -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 ;
drivers/crypto/atmel-i2c.h +1 -1
@@ -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 */
Signature · 1 line
2.17.1
Herbert Xu
maintainerQuoted 9 lines · Lukas Bulwahn
Defines prefixed with "CONFIG" should be limited to proper
Kconfigoptions, that are introduced in aKconfigfile.Here, a definition for the driver's configuration zone is named
CONFIG_ZONE. Rename this local definition toCONFIGURATION_ZONEto avoid defines prefixed with "CONFIG".No functional change.
Quoted 7 lines
Signed-off-by Lukas Bulwahn <[email protected]>---
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(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt