mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] auxdisplay: Kconfig: drop unneeded quotes in PANEL_BOOT_MESSAGE dep
@ 2026-05-15 13:30 Stepan Ionichev
  2026-05-17  5:51 ` Andy Shevchenko
  2026-05-17  5:58 ` Andy Shevchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Stepan Ionichev @ 2026-05-15 13:30 UTC (permalink / raw)
  To: andy; +Cc: geert, gregkh, hcazarim, linux-kernel, sozdayvek, Andy Shevchenko

The PANEL_BOOT_MESSAGE dependency uses a quoted-string comparison
against the PANEL_CHANGE_MESSAGE bool symbol:

	depends on PANEL_CHANGE_MESSAGE="y"

This is the only such pattern under drivers/auxdisplay/ (grep shows
no other Kconfig file in the tree uses depends on FOO="y" with
quotes for a plain bool symbol). The quoted form is parsed by
Kconfig but is not idiomatic; the common form for the same intent
is the unquoted tristate-style dependency:

	depends on PANEL_CHANGE_MESSAGE

which evaluates true when PANEL_CHANGE_MESSAGE is y or m. Since
PANEL_CHANGE_MESSAGE is declared as bool (not tristate), there is
no behaviour change in practice: y is the only enabled value
either form can match.

Drop the quoted comparison so the dependency matches the prevailing
kernel Kconfig style and so it is obvious to readers that the
comparison works.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/CAHp75VfsA_LsbEKjxoeMdbhPbWj7OHZ7=0SYNA3c=ZLj_M94Bw@mail.gmail.com
Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
---
 drivers/auxdisplay/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig
index bedc6133f..1ea7c0391 100644
--- a/drivers/auxdisplay/Kconfig
+++ b/drivers/auxdisplay/Kconfig
@@ -327,7 +327,7 @@ config PANEL_CHANGE_MESSAGE
 	  say 'N' and keep the default message with the version.
 
 config PANEL_BOOT_MESSAGE
-	depends on PANEL_CHANGE_MESSAGE="y"
+	depends on PANEL_CHANGE_MESSAGE
 	string "New initialization message"
 	default ""
 	help
-- 
2.43.0


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

* Re: [PATCH] auxdisplay: Kconfig: drop unneeded quotes in PANEL_BOOT_MESSAGE dep
  2026-05-15 13:30 [PATCH] auxdisplay: Kconfig: drop unneeded quotes in PANEL_BOOT_MESSAGE dep Stepan Ionichev
@ 2026-05-17  5:51 ` Andy Shevchenko
  2026-05-17  5:58 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-05-17  5:51 UTC (permalink / raw)
  To: Stepan Ionichev; +Cc: andy, geert, gregkh, hcazarim, linux-kernel

On Fri, May 15, 2026 at 06:30:04PM +0500, Stepan Ionichev wrote:
> The PANEL_BOOT_MESSAGE dependency uses a quoted-string comparison
> against the PANEL_CHANGE_MESSAGE bool symbol:
> 
> 	depends on PANEL_CHANGE_MESSAGE="y"
> 
> This is the only such pattern under drivers/auxdisplay/ (grep shows
> no other Kconfig file in the tree uses depends on FOO="y" with
> quotes for a plain bool symbol). The quoted form is parsed by
> Kconfig but is not idiomatic; the common form for the same intent
> is the unquoted tristate-style dependency:
> 
> 	depends on PANEL_CHANGE_MESSAGE

Strictly speaking we need to have =y in case if PANEL_CHANGE_MESSAGE becomes a
tristate. But I don't believe it will ever happen IRL.

> which evaluates true when PANEL_CHANGE_MESSAGE is y or m. Since
> PANEL_CHANGE_MESSAGE is declared as bool (not tristate), there is
> no behaviour change in practice: y is the only enabled value
> either form can match.
> 
> Drop the quoted comparison so the dependency matches the prevailing
> kernel Kconfig style and so it is obvious to readers that the
> comparison works.

Thanks, I'm going to apply this.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH] auxdisplay: Kconfig: drop unneeded quotes in PANEL_BOOT_MESSAGE dep
  2026-05-15 13:30 [PATCH] auxdisplay: Kconfig: drop unneeded quotes in PANEL_BOOT_MESSAGE dep Stepan Ionichev
  2026-05-17  5:51 ` Andy Shevchenko
@ 2026-05-17  5:58 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-05-17  5:58 UTC (permalink / raw)
  To: Stepan Ionichev; +Cc: andy, geert, gregkh, hcazarim, linux-kernel

On Fri, May 15, 2026 at 06:30:04PM +0500, Stepan Ionichev wrote:
> The PANEL_BOOT_MESSAGE dependency uses a quoted-string comparison
> against the PANEL_CHANGE_MESSAGE bool symbol:
> 
> 	depends on PANEL_CHANGE_MESSAGE="y"
> 
> This is the only such pattern under drivers/auxdisplay/ (grep shows
> no other Kconfig file in the tree uses depends on FOO="y" with
> quotes for a plain bool symbol). The quoted form is parsed by
> Kconfig but is not idiomatic; the common form for the same intent
> is the unquoted tristate-style dependency:
> 
> 	depends on PANEL_CHANGE_MESSAGE
> 
> which evaluates true when PANEL_CHANGE_MESSAGE is y or m. Since
> PANEL_CHANGE_MESSAGE is declared as bool (not tristate), there is
> no behaviour change in practice: y is the only enabled value
> either form can match.
> 
> Drop the quoted comparison so the dependency matches the prevailing
> kernel Kconfig style and so it is obvious to readers that the
> comparison works.

Pushed to my review and testing queue, thanks!

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2026-05-17  5:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-15 13:30 [PATCH] auxdisplay: Kconfig: drop unneeded quotes in PANEL_BOOT_MESSAGE dep Stepan Ionichev
2026-05-17  5:51 ` Andy Shevchenko
2026-05-17  5:58 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®