mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] auxdisplay: panel: replace struct with union for display configuration
@ 2024-12-25 17:41 Atharva Tiwari
  2024-12-25 17:46 ` Willy TARREAU
  0 siblings, 1 reply; 4+ messages in thread
From: Atharva Tiwari @ 2024-12-25 17:41 UTC (permalink / raw)
  Cc: evepolonium, Willy Tarreau, Ksenija Stanojevic, Andy Shevchenko,
	Geert Uytterhoeven, Sudip Mukherjee, Dr. David Alan Gilbert,
	Greg Kroah-Hartman, linux-kernel

this patch replaces a struct with a union in the panel.c driver 
to better represent display configuration as mentioned in TODO

Signed-off-by: Atharva Tiwari <evepolonium@gmail.com>
---
 drivers/auxdisplay/panel.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c
index a731f28455b4..4662f763dac7 100644
--- a/drivers/auxdisplay/panel.c
+++ b/drivers/auxdisplay/panel.c
@@ -204,8 +204,7 @@ static struct {
 	int charset;
 	int proto;
 
-	/* TODO: use union here? */
-	struct {
+	union {
 		int e;
 		int rs;
 		int rw;
-- 
2.39.5


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

end of thread, other threads:[~2024-12-25 22:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-25 17:41 [PATCH] auxdisplay: panel: replace struct with union for display configuration Atharva Tiwari
2024-12-25 17:46 ` Willy TARREAU
2024-12-25 18:06   ` Atharva Tiwari
2024-12-25 22:22     ` 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®