linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/2] Apple Magic Keyboard Backlight
@ 2023-02-16  4:12 Orlando Chamberlain
  2023-02-16  4:12 ` [PATCH 1/2] Documentation: leds: standardise keyboard backlight led names Orlando Chamberlain
  2023-02-16  4:12 ` [PATCH 2/2] HID: apple-magic-backlight: Add driver for keyboard backlight on internal Magic Keyboards Orlando Chamberlain
  0 siblings, 2 replies; 8+ messages in thread
From: Orlando Chamberlain @ 2023-02-16  4:12 UTC (permalink / raw)
  To: linux-input
  Cc: Jonathan Corbet, Jiri Kosina, Benjamin Tissoires, linux-doc,
	linux-kernel, Pavel Machek, Aditya Garg, Aun-Ali Zaidi,
	Kerem Karabay, Andy Shevchenko, Thomas Weißschuh,
	Orlando Chamberlain

This patchseries adds support for the internal keyboard backlight of
Macs with Apple's "Magic" keyboard (MacBookPro16,* and MacBookAir9,1),
and also documents what names should be used for keyboard backlight
leds in Documentation/leds/well-known-leds.txt.

A previous version of this patch was sent alongside some other drivers
here[1] but for v2 I'm submitting it separately to make upstreaming
easier.

v1->v2:
- drop unneeded remove function
- combine set functions
- add missing header inclusions
- avoid char as argument in favour of u8
- handful of style/formatting fixes
- use standard led name ":white:kbd_backlight"
- rename USAGE_MAGIC_BL to HID_USAGE_MAGIC_BL
- New patch documenting preferred keyboard backlight names

[1]: https://lore.kernel.org/linux-input/7D70F1FE-7F54-4D0A-8922-5466AA2AD364@live.com/

Orlando Chamberlain (2):
  Documentation: leds: standardise keyboard backlight led names
  HID: apple-magic-backlight: Add driver for keyboard backlight on
    internal Magic Keyboards

 Documentation/leds/well-known-leds.txt |   8 ++
 MAINTAINERS                            |   6 ++
 drivers/hid/Kconfig                    |  13 +++
 drivers/hid/Makefile                   |   1 +
 drivers/hid/apple-magic-backlight.c    | 125 +++++++++++++++++++++++++
 5 files changed, 153 insertions(+)
 create mode 100644 drivers/hid/apple-magic-backlight.c

-- 
2.39.1


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

end of thread, other threads:[~2023-02-16 11:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16  4:12 [PATCHv2 0/2] Apple Magic Keyboard Backlight Orlando Chamberlain
2023-02-16  4:12 ` [PATCH 1/2] Documentation: leds: standardise keyboard backlight led names Orlando Chamberlain
2023-02-16  4:12 ` [PATCH 2/2] HID: apple-magic-backlight: Add driver for keyboard backlight on internal Magic Keyboards Orlando Chamberlain
2023-02-16  5:41   ` Thomas Weißschuh
2023-02-16  5:58     ` Orlando Chamberlain
2023-02-16 11:51     ` Andy Shevchenko
2023-02-16  7:10   ` Orlando Chamberlain
2023-02-16 11:49     ` Andy Shevchenko

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).