Skip to contentSkip to conversation

Input: HID - add support for fn key on Apple PowerBooks

DISCUSSION Olaf Hering 3 participants 3 messages Jan 16, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 28 lines · Linux Kernel Mailing List

tree 8ba37791bfeb95e660caf6192c8dcecd9ba2aa6e
parent 1e27ffd4d7d39783c5196daa2584cca5785d1f95
author Michael Hanselmann <[email protected]> Sat, 14 Jan 2006 20:08:06 -0500 committer Dmitry Torokhov <[email protected]> Sat, 14 Jan 2006 20:08:06 -0500

Input: HID - add support for fn key on Apple PowerBooks

This patch implements support for the fn key on Apple PowerBooks using USB based keyboards and makes them behave like their ADB counterparts.

 drivers/usb/input/Kconfig     |   10 ++
 drivers/usb/input/hid-core.c  |    8 ++
 drivers/usb/input/hid-input.c |  166 +++++++++++++++++++++++++++++++++++++++++-
 drivers/usb/input/hid.h       |   31 ++++---
 4 files changed, 201 insertions(+), 14 deletions(-)
drivers/usb/input/Kconfig +0 -0
index 509dd0a..5246b35 100644

drivers/usb/input/Kconfig config USB_HIDINPUT · line 46

Quoted 10 lines
drivers/usb/input/Kconfig +7 -0
@@ -37,6 +37,16 @@ config USB_HIDINPUT
 
 	  If unsure, say Y.
 
+config USB_HIDINPUT_POWERBOOK
+	bool "Enable support for iBook/PowerBook special keys"
+	default n
+	depends on USB_HIDINPUT
+	help
+	  Say Y here if you want support for the special keys (Fn, Numlock) on
+	  Apple iBooks and PowerBooks.

Should this depend on CONFIG_$powerbook?

Signature · 2 lines
short story of a lazy sysadmin:
 alias appserv=wotan
#2 lore raw
Quoted 8 lines · Olaf Hering
Quoted 8 lines
drivers/usb/input/Kconfig +0 -0
index 509dd0a..5246b35 100644
@@ -37,6 +37,16 @@ config USB_HIDINPUT
 
 	  If unsure, say Y.
 
Quoted 9 lines

drivers/usb/input/Kconfig config USB_HIDINPUT · line 46

Quoted 7 lines
drivers/usb/input/Kconfig +7 -0
+config USB_HIDINPUT_POWERBOOK
+	bool "Enable support for iBook/PowerBook special keys"
+	default n
+	depends on USB_HIDINPUT
+	help
+	  Say Y here if you want support for the special keys (Fn, Numlock) on
+	  Apple iBooks and PowerBooks.

Should this depend on CONFIG_$powerbook?

It could, but will still compile and not cause any trouble on non-powerbooks, so there isn't much reason to restrict it.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR
#3 lore raw
In reply to Olaf Hering
Quoted 1 line · Olaf Hering

Should this depend on CONFIG_$powerbook?

Except that there is no such thing :) there is the CONFIG_PMAC_PBOOK thing but that will be going away soon as it's over abused.

You may want to make it CONFIG_PPC_PMAC if you want, but it doesn't really matter as the option will not cause any problem on non-powerbook and it will still build. Beside, who knows, it might even end up being useful on the Intel Macs if Linux ever runs on them :)

Ben.