All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] speakup: Replace u_short with u16 for spk_chartab
@ 2025-06-04 13:58 Jagadeesh Yalapalli
  2025-06-04 14:58 ` Samuel Thibault
  2025-06-05  5:08 ` [PATCH v2] speakup: Standardize character attribute types to u16 Jagadeesh Yalapalli
  0 siblings, 2 replies; 4+ messages in thread
From: Jagadeesh Yalapalli @ 2025-06-04 13:58 UTC (permalink / raw)
  To: William Hubbs
  Cc: Chris Brannon, Kirk Reiser, Samuel Thibault, Thomas Gleixner,
	Ingo Molnar, speakup, linux-kernel, Jagadeesh Yalapalli

From: Jagadeesh Yalapalli <jagadeesh.yalapalli@einfochips.com>

The spk_chartab array was previously declared as `u_short`,
which is a non-standard type and may vary in size across platforms.
Replace it with `u16` to ensure consistent 16-bit width and improve
code portability and readability.

Signed-off-by: Jagadeesh Yalapalli <jagadeesh.yalapalli@einfochips.com>
---
 drivers/accessibility/speakup/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accessibility/speakup/main.c b/drivers/accessibility/speakup/main.c
index e68cf1d83787..34c7cb6a9b43 100644
--- a/drivers/accessibility/speakup/main.c
+++ b/drivers/accessibility/speakup/main.c
@@ -187,7 +187,7 @@ char *spk_default_chars[256] = {
  * initialized to default_chartab and user selectable via
  * /sys/module/speakup/parameters/chartab
  */
-u_short spk_chartab[256];
+u16 spk_chartab[256];
 
 static u_short default_chartab[256] = {
 	B_CTL, B_CTL, B_CTL, B_CTL, B_CTL, B_CTL, B_CTL, B_CTL,	/* 0-7 */
-- 
2.43.0


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

end of thread, other threads:[~2025-06-07 17:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04 13:58 [PATCH v1] speakup: Replace u_short with u16 for spk_chartab Jagadeesh Yalapalli
2025-06-04 14:58 ` Samuel Thibault
2025-06-05  5:08 ` [PATCH v2] speakup: Standardize character attribute types to u16 Jagadeesh Yalapalli
2025-06-07 17:15   ` Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.