2007-05-02 15:33:54

by Noèl Köthe

[permalink] [raw]
Subject: [PATCH] kernel option CONFIG_USB_HIDINPUT_POWERBOOK description update

Hello together,

The description of this option needs to be extended to be correct:)

--- /usr/src/linux-2.6.21/drivers/usb/input/Kconfig 2007-04-27 18:02:46.000000000 +0200
+++ Kconfig.new 2007-05-02 16:47:56.000000000 +0200
@@ -28,12 +28,12 @@
depends on USB_HID && INPUT=n

config USB_HIDINPUT_POWERBOOK
- bool "Enable support for iBook/PowerBook special keys"
+ bool "Enable support for iBook/PowerBook/MacBook/MacBookPro special keys"
default n
depends on USB_HID
help
Say Y here if you want support for the special keys (Fn, Numlock) on
- Apple iBooks and PowerBooks.
+ Apple iBooks, PowerBooks, MacBooks and MacBook Pro's.

If unsure, say N.

This option is needed on the Apple Intel Laptops, too.
I would suggest to rename USB_HIDINPUT_POWERBOOK because its needed on Apple Laptops.
Maybe USB_HIDINPUT_APPLELAPTOPS or something like this. Is a renaming patch for this welcome?

Thanks for your answer/applying.:)

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, http://www.debian.org


Attachments:
signature.asc (189.00 B)
Dies ist ein digital signierter Nachrichtenteil

2007-05-03 07:56:59

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] kernel option CONFIG_USB_HIDINPUT_POWERBOOK description update

On Wed, 2 May 2007, No?l K?the wrote:

> The description of this option needs to be extended to be correct:)
> --- /usr/src/linux-2.6.21/drivers/usb/input/Kconfig 2007-04-27 18:02:46.000000000 +0200
> +++ Kconfig.new 2007-05-02 16:47:56.000000000 +0200
> @@ -28,12 +28,12 @@
> depends on USB_HID && INPUT=n
>
> config USB_HIDINPUT_POWERBOOK
> - bool "Enable support for iBook/PowerBook special keys"
> + bool "Enable support for iBook/PowerBook/MacBook/MacBookPro special keys"

Hi,

I will apply this into my tree, thanks.

> This option is needed on the Apple Intel Laptops, too. I would suggest
> to rename USB_HIDINPUT_POWERBOOK because its needed on Apple Laptops.
> Maybe USB_HIDINPUT_APPLELAPTOPS or something like this. Is a renaming
> patch for this welcome?

The problem here is backwards compatibility - if we would like to do the
change in a consistent way, we should rename all the places which (for
historic reasons) mention powerbook only. Unfortunately this would also
require renaming the module parameter hid_pb_fnmode, which might be a
little too intrusive with respect to maintaining backward compatibility in
userspace (ok, we have already been fiddling with this parameter anyway
during the usbhid code split, but anyway).

If you would care to make the patch which maintains backwards
compatibility (for example by aliasing the variable pb_fnmode behing two
module parameters), that might probably be ok.

Thanks,

--
Jiri Kosina

2007-05-07 19:24:27

by Noèl Köthe

[permalink] [raw]
Subject: Re: [PATCH] kernel option CONFIG_USB_HIDINPUT_POWERBOOK description update

Am Donnerstag, den 03.05.2007, 09:56 +0200 schrieb Jiri Kosina:

Hello Jiri,

> > The description of this option needs to be extended to be correct:)

> > config USB_HIDINPUT_POWERBOOK
> > - bool "Enable support for iBook/PowerBook special keys"
> > + bool "Enable support for iBook/PowerBook/MacBook/MacBookPro special keys"

> I will apply this into my tree, thanks.

Great thanks. Does this mean it will go into your tree and then into the
mainline kernel, or is there an additional step needed?

> > This option is needed on the Apple Intel Laptops, too. I would suggest
> > to rename USB_HIDINPUT_POWERBOOK because its needed on Apple Laptops.
> > Maybe USB_HIDINPUT_APPLELAPTOPS or something like this. Is a renaming
> > patch for this welcome?
>
> The problem here is backwards compatibility - if we would like to do the
> change in a consistent way, we should rename all the places which (for
> historic reasons) mention powerbook only. Unfortunately this would also
> require renaming the module parameter hid_pb_fnmode, which might be a
> little too intrusive with respect to maintaining backward compatibility in
> userspace (ok, we have already been fiddling with this parameter anyway
> during the usbhid code split, but anyway).
>
> If you would care to make the patch which maintains backwards
> compatibility (for example by aliasing the variable pb_fnmode behing two
> module parameters), that might probably be ok.

I understand. I will try.

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, http://www.debian.org


Attachments:
signature.asc (189.00 B)
Dies ist ein digital signierter Nachrichtenteil

2007-05-07 21:37:01

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] kernel option CONFIG_USB_HIDINPUT_POWERBOOK description update

On Mon, 7 May 2007, No?l K?the wrote:

> > > config USB_HIDINPUT_POWERBOOK
> > > - bool "Enable support for iBook/PowerBook special keys"
> > > + bool "Enable support for iBook/PowerBook/MacBook/MacBookPro special keys"
> > I will apply this into my tree, thanks.
> Great thanks. Does this mean it will go into your tree and then into the
> mainline kernel, or is there an additional step needed?

No further steps needed on your side. Applied, thanks,

--
Jiri Kosina