public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] tty: serial: samsung_tty: simple cleanups
@ 2024-08-08  8:11 André Draszik
  2024-08-08  8:11 ` [PATCH v3 1/2] tty: serial: samsung_tty: drop unused argument to irq handlers André Draszik
  2024-08-08  8:11 ` [PATCH v3 2/2] tty: serial: samsung_tty: cast the interrupt's void *id just once André Draszik
  0 siblings, 2 replies; 5+ messages in thread
From: André Draszik @ 2024-08-08  8:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Alim Akhtar, Greg Kroah-Hartman, Jiri Slaby
  Cc: Peter Griffin, Tudor Ambarus, Will McVicker, kernel-team,
	linux-arm-kernel, linux-samsung-soc, linux-kernel, linux-serial,
	André Draszik

While looking through the samsung tty driver, I've spotted a few things that
can be simplified by removing unused function arguments and by avoiding some
duplicated variables and casting.

There are no functional changes here.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
---
Changes in v3:
- undo too eager removal of 'const' where unnecessary (Jiri)
- Link to v2: https://lore.kernel.org/r/20240807-samsung-tty-cleanup-v2-0-1db5afc9d41b@linaro.org

Changes in v2:
- fix -Wdiscarded-qualifiers warnings
- collect tags
- Link to v1: https://lore.kernel.org/r/20240806-samsung-tty-cleanup-v1-0-a68d3abf31fe@linaro.org

---
André Draszik (2):
      tty: serial: samsung_tty: drop unused argument to irq handlers
      tty: serial: samsung_tty: cast the interrupt's void *id just once

 drivers/tty/serial/samsung_tty.c | 29 ++++++++++++-----------------
 1 file changed, 12 insertions(+), 17 deletions(-)
---
base-commit: 1e391b34f6aa043c7afa40a2103163a0ef06d179
change-id: 20240806-samsung-tty-cleanup-ffae1515a284

Best regards,
-- 
André Draszik <andre.draszik@linaro.org>


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

end of thread, other threads:[~2024-08-08  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-08  8:11 [PATCH v3 0/2] tty: serial: samsung_tty: simple cleanups André Draszik
2024-08-08  8:11 ` [PATCH v3 1/2] tty: serial: samsung_tty: drop unused argument to irq handlers André Draszik
2024-08-08  8:34   ` Jiri Slaby
2024-08-08  8:11 ` [PATCH v3 2/2] tty: serial: samsung_tty: cast the interrupt's void *id just once André Draszik
2024-08-08  8:35   ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox