* [PATCH] i8042: Do not abuse CONFIG namespace
@ 2021-08-19 18:58 Tom Rini
2021-08-20 9:31 ` Bin Meng
2021-08-30 20:59 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Tom Rini @ 2021-08-19 18:58 UTC (permalink / raw)
To: u-boot
This driver uses the CONFIG namespace to set the chips internal CONFIG
namespace related bits. However, CONFIG is reserved for the top-level
Kconfig based configuration system. Use CFG as the namespace here
instead to avoid pollution.
Signed-off-by: Tom Rini <trini@konsulko.com>
---
drivers/input/i8042.c | 4 ++--
include/i8042.h | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c
index 565d99e7e57f..d3743dc37f72 100644
--- a/drivers/input/i8042.c
+++ b/drivers/input/i8042.c
@@ -150,8 +150,8 @@ static int kbd_reset(int quirk)
else if ((quirk & QUIRK_DUP_POR) && config == KBD_POR)
config = kbd_cmd_read(CMD_RD_CONFIG);
- config |= CONFIG_AT_TRANS;
- config &= ~(CONFIG_KIRQ_EN | CONFIG_MIRQ_EN);
+ config |= CFG_AT_TRANS;
+ config &= ~(CFG_KIRQ_EN | CFG_MIRQ_EN);
if (kbd_cmd_write(CMD_WR_CONFIG, config))
goto err;
diff --git a/include/i8042.h b/include/i8042.h
index 8d69fa13bc2a..687632058c95 100644
--- a/include/i8042.h
+++ b/include/i8042.h
@@ -20,12 +20,12 @@
#define STATUS_IBF (1 << 1)
/* Configuration byte bit defines */
-#define CONFIG_KIRQ_EN (1 << 0)
-#define CONFIG_MIRQ_EN (1 << 1)
-#define CONFIG_SET_BIST (1 << 2)
-#define CONFIG_KCLK_DIS (1 << 4)
-#define CONFIG_MCLK_DIS (1 << 5)
-#define CONFIG_AT_TRANS (1 << 6)
+#define CFG_KIRQ_EN (1 << 0)
+#define CFG_MIRQ_EN (1 << 1)
+#define CFG_SET_BIST (1 << 2)
+#define CFG_KCLK_DIS (1 << 4)
+#define CFG_MCLK_DIS (1 << 5)
+#define CFG_AT_TRANS (1 << 6)
/* i8042 commands */
#define CMD_RD_CONFIG 0x20 /* read configuration byte */
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] i8042: Do not abuse CONFIG namespace
2021-08-19 18:58 [PATCH] i8042: Do not abuse CONFIG namespace Tom Rini
@ 2021-08-20 9:31 ` Bin Meng
2021-08-30 20:59 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Bin Meng @ 2021-08-20 9:31 UTC (permalink / raw)
To: Tom Rini; +Cc: U-Boot Mailing List
On Fri, Aug 20, 2021 at 2:58 AM Tom Rini <trini@konsulko.com> wrote:
>
> This driver uses the CONFIG namespace to set the chips internal CONFIG
> namespace related bits. However, CONFIG is reserved for the top-level
> Kconfig based configuration system. Use CFG as the namespace here
> instead to avoid pollution.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> drivers/input/i8042.c | 4 ++--
> include/i8042.h | 12 ++++++------
> 2 files changed, 8 insertions(+), 8 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i8042: Do not abuse CONFIG namespace
2021-08-19 18:58 [PATCH] i8042: Do not abuse CONFIG namespace Tom Rini
2021-08-20 9:31 ` Bin Meng
@ 2021-08-30 20:59 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2021-08-30 20:59 UTC (permalink / raw)
To: u-boot
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
On Thu, Aug 19, 2021 at 02:58:00PM -0400, Tom Rini wrote:
> This driver uses the CONFIG namespace to set the chips internal CONFIG
> namespace related bits. However, CONFIG is reserved for the top-level
> Kconfig based configuration system. Use CFG as the namespace here
> instead to avoid pollution.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-30 21:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 18:58 [PATCH] i8042: Do not abuse CONFIG namespace Tom Rini
2021-08-20 9:31 ` Bin Meng
2021-08-30 20:59 ` Tom Rini
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.