From: Jiri Slaby <jslaby@suse.cz>
To: Alex Henrie <alexhenrie24@gmail.com>,
jikos@kernel.org, benjamin.tissoires@redhat.com,
stefan@glasen-hardt.de, ryan@finnie.org, morbidrsa@gmail.com,
dan@pwienterprises.com, andreas.krist@gmail.com,
rydberg@bitmath.org, lukas@wunner.de,
linux-input@vger.kernel.org
Subject: Re: [PATCH] HID: apple: Use country code to detect ISO keyboards
Date: Fri, 2 Jun 2017 07:50:36 +0200 [thread overview]
Message-ID: <357294a6-1163-6608-e13e-b9e68729f714@suse.cz> (raw)
In-Reply-To: <20170602054544.1793-1-alexhenrie24@gmail.com>
On 06/02/2017, 07:45 AM, Alex Henrie wrote:
> At least on newer laptops, Apple uses the same USB ID for both ISO and
> ANSI keyboards. However, they have been good about filling in the
> bCountryCode field in the HID descriptor on all of their keyboards. A
> value of 13 indicates an ISO layout and other values indicate various
> country-specific ANSI layouts.
>
> With this patch, users of Apple US keyboards will no longer have to run
> `echo 0 > /sys/module/hid_apple/parameters/iso_layout` to get a working
> tilde key.
>
> Please test this patch and send feedback if you have a Macbook or an
> Apple keyboard.
>
> Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
> ---
> drivers/hid/hid-apple.c | 64 ++++++++++++++++++++++---------------------------
> 1 file changed, 28 insertions(+), 36 deletions(-)
>
> diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
> index 2e046082210f..77396400bbd8 100644
> --- a/drivers/hid/hid-apple.c
> +++ b/drivers/hid/hid-apple.c
> @@ -28,11 +28,10 @@
> #define APPLE_IGNORE_MOUSE 0x0002
> #define APPLE_HAS_FN 0x0004
> #define APPLE_HIDDEV 0x0008
> -#define APPLE_ISO_KEYBOARD 0x0010
> -#define APPLE_MIGHTYMOUSE 0x0020
> -#define APPLE_INVERT_HWHEEL 0x0040
> -#define APPLE_IGNORE_HIDINPUT 0x0080
> -#define APPLE_NUMLOCK_EMULATION 0x0100
> +#define APPLE_MIGHTYMOUSE 0x0010
> +#define APPLE_INVERT_HWHEEL 0x0020
> +#define APPLE_IGNORE_HIDINPUT 0x0040
> +#define APPLE_NUMLOCK_EMULATION 0x0080
I wouldn't recommend renumbering as it is a nightmare for backporting.
Just leave there a gap.
thanks,
--
js
suse labs
prev parent reply other threads:[~2017-06-02 5:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-02 5:45 [PATCH] HID: apple: Use country code to detect ISO keyboards Alex Henrie
2017-06-02 5:50 ` Jiri Slaby [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=357294a6-1163-6608-e13e-b9e68729f714@suse.cz \
--to=jslaby@suse.cz \
--cc=alexhenrie24@gmail.com \
--cc=andreas.krist@gmail.com \
--cc=benjamin.tissoires@redhat.com \
--cc=dan@pwienterprises.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=morbidrsa@gmail.com \
--cc=ryan@finnie.org \
--cc=rydberg@bitmath.org \
--cc=stefan@glasen-hardt.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox