]> Gentwo Git Trees - linux/.git/commit
auxdisplay: linedisp: display static message when length <= display size
authorJean-François Lessard <jefflessard3@gmail.com>
Thu, 18 Sep 2025 12:13:13 +0000 (08:13 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Oct 2025 16:46:01 +0000 (18:46 +0200)
commit9870334f486763b2d93ced6f9dcd5d009fe6ec80
tree726d92c21876fcb95ac865ed2d45ee6a8fd180f8
parent66c93809487e62c4f59ef08625a3fbc0a7de6dd2
auxdisplay: linedisp: display static message when length <= display size

Currently, when a message shorter than the display size is written, the
content wraps around (e.g., "123" on a 4-digit display shows "1231")
without scrolling, which is confusing and unintuitive.

Change behavior to display short messages statically with space padding
(e.g. "123 ") while only scrolling messages longer than the display width.
This provides more natural behavior that aligns with user expectations
and current linedisp_display() kernel-doc.

The scroll logic is also consolidated into a helper function for clarity.

No API changes are introduced.

Signed-off-by: Jean-François Lessard <jefflessard3@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/line-display.c