[PATCH] auxdisplay: panel: replace struct with union for display configuration

From: Atharva Tiwari
Date: Wed Dec 25 2024 - 12:41:50 EST


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@xxxxxxxxx>
---
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