mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] HID: apple: improvements for code readability
@ 2025-03-04  9:12 Aditya Garg
  2025-03-04  9:13 ` [PATCH 1/2] HID: apple: move backlight report structs to other backlight structs Aditya Garg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Aditya Garg @ 2025-03-04  9:12 UTC (permalink / raw)
  To: Jiri Kosina, jkosina, Benjamin Tissoires, bentiss
  Cc: Linux Kernel Mailing List, linux-input

Hi

This small patch series aims to improve the code readability in hid-apple.

The first patch moves the backlight report structs, that were incorrectly
placed between the translation tables, to other related backlight structs.

The second patch makes use of switch case statements for the ever
increasing lengthy device table for fn translation.

Aditya Garg (2):
  HID: apple: move backlight report structs alongwith other backlight
    structs
  HID: apple: use switch case to set fn translation table

 drivers/hid/hid-apple.c | 100 ++++++++++++++++++++++------------------
 1 file changed, 54 insertions(+), 46 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-03-07 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-04  9:12 [PATCH 0/2] HID: apple: improvements for code readability Aditya Garg
2025-03-04  9:13 ` [PATCH 1/2] HID: apple: move backlight report structs to other backlight structs Aditya Garg
2025-03-04  9:14 ` [PATCH 2/2] HID: apple: use switch case to set fn translation table Aditya Garg
2025-03-07 12:02 ` [PATCH 0/2] HID: apple: improvements for code readability Aditya Garg

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

all inboxes | Powered by JetHome®