dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/panel: ilitek-ili9881c: Use u8 for lane count
@ 2025-06-11 23:49 Marek Vasut
  2025-06-13  9:29 ` Neil Armstrong
  0 siblings, 1 reply; 9+ messages in thread
From: Marek Vasut @ 2025-06-11 23:49 UTC (permalink / raw)
  To: dri-devel
  Cc: Marek Vasut, Geert Uytterhoeven, David Airlie, Jessica Zhang,
	Maarten Lankhorst, Maxime Ripard, Neil Armstrong, Simona Vetter,
	Thomas Zimmermann, linux-renesas-soc

Use u8 to hold lane count in struct ili9881c_desc {} to avoid
alignment gap between default_address_mode and lanes members.
The ili9881c controller can only operate up to 4 DSI lanes, so
there is no chance this value can ever be larger than 4. No
functional change.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: David Airlie <airlied@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jessica Zhang <jessica.zhang@oss.qualcomm.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Simona Vetter <simona@ffwll.ch>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
---
 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
index ac433345a179..84927302957a 100644
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
@@ -43,7 +43,7 @@ struct ili9881c_desc {
 	const struct drm_display_mode *mode;
 	const unsigned long mode_flags;
 	u8 default_address_mode;
-	unsigned int lanes;
+	u8 lanes;
 };
 
 struct ili9881c {
-- 
2.47.2


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

end of thread, other threads:[~2025-06-30 16:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 23:49 [PATCH] drm/panel: ilitek-ili9881c: Use u8 for lane count Marek Vasut
2025-06-13  9:29 ` Neil Armstrong
2025-06-13 10:54   ` Marek Vasut
2025-06-16 11:45     ` Neil Armstrong
2025-06-16 16:05       ` Marek Vasut
2025-06-16 16:26         ` Neil Armstrong
2025-06-21 16:03           ` Marek Vasut
2025-06-30 15:34             ` Neil Armstrong
2025-06-30 16:08               ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).