All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/tty/nozomi.c: rename CONFIG_MAGIC
@ 2015-04-12 14:56 Valentin Rothberg
  2015-04-12 16:16 ` Peter Hurley
  0 siblings, 1 reply; 3+ messages in thread
From: Valentin Rothberg @ 2015-04-12 14:56 UTC (permalink / raw)
  To: gregkh, jslaby, linux-kernel; +Cc: Valentin Rothberg

The CONFIG_ prefix is reserved for Kconfig options in Make and CPP
syntax.  CONFIG_MAGIC is a file local CPP identifier so strip the prefix
to apply to Kconfig's naming convention.

Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
---
I found this issue with ./scripts/checkkconfigsymbols.py
---
 drivers/tty/nozomi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c
index 74885af8c7bd..4a4775e81963 100644
--- a/drivers/tty/nozomi.c
+++ b/drivers/tty/nozomi.c
@@ -140,7 +140,7 @@ static int debug;
 #define R_FCR		0x0000	/* Flow Control Register */
 #define R_IER		0x0004	/* Interrupt Enable Register */
 
-#define CONFIG_MAGIC	0xEFEFFEFE
+#define MAGIC			0xEFEFFEFE
 #define TOGGLE_VALID	0x0000
 
 /* Definition of interrupt tokens */
@@ -660,9 +660,9 @@ static int nozomi_read_config_table(struct nozomi *dc)
 	read_mem32((u32 *) &dc->config_table, dc->base_addr + 0,
 						sizeof(struct config_table));
 
-	if (dc->config_table.signature != CONFIG_MAGIC) {
+	if (dc->config_table.signature != MAGIC) {
 		dev_err(&dc->pdev->dev, "ConfigTable Bad! 0x%08X != 0x%08X\n",
-			dc->config_table.signature, CONFIG_MAGIC);
+			dc->config_table.signature, MAGIC);
 		return 0;
 	}
 
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-12 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12 14:56 [PATCH] drivers/tty/nozomi.c: rename CONFIG_MAGIC Valentin Rothberg
2015-04-12 16:16 ` Peter Hurley
2015-04-12 16:25   ` Valentin Rothberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.