[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200616105045.GB1718@bug>
Date: Tue, 16 Jun 2020 12:50:45 +0200
From: Pavel Machek <pavel@....cz>
To: Merlijn Wajer <merlijn@...zup.org>
Cc: Sebastian Reichel <sebastian.reichel@...labora.com>,
Tony Lindgren <tony@...mide.com>,
Beno??t Cousson <bcousson@...libre.com>,
Rob Herring <robh+dt@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Borislav Petkov <bp@...e.de>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Mattias Jacobsson <2pi@....nu>,
Mark Gross <mgross@...ux.intel.com>,
Russell King <rmk+kernel@...linux.org.uk>,
"open list:OMAP DEVICE TREE SUPPORT" <linux-omap@...r.kernel.org>,
"open list:OMAP DEVICE TREE SUPPORT" <devicetree@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
"open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..."
<linux-input@...r.kernel.org>
Subject: Re: [PATCH 1/2] Input: add `SW_MACHINE_COVER`
On Fri 2020-06-12 14:53:58, Merlijn Wajer wrote:
> This event code represents the state of a removable cover of a device.
> Value 0 means that the cover is open or removed, value 1 means that the
> cover is closed.
>
> Reviewed-by: Sebastian Reichel <sebastian.reichel@...labora.com> Acked-by: Tony Lindgren
> <tony@...mide.com> Signed-off-by: Merlijn Wajer <merlijn@...zup.org> ---
Dmitry, can we get some kind of comment here, or better yet can we get you to apply this?
Thanks,
Pavel
> +++ b/include/linux/mod_devicetable.h
> @@ -318,7 +318,7 @@ struct pcmcia_device_id {
> #define INPUT_DEVICE_ID_LED_MAX 0x0f
> #define INPUT_DEVICE_ID_SND_MAX 0x07
> #define INPUT_DEVICE_ID_FF_MAX 0x7f
> -#define INPUT_DEVICE_ID_SW_MAX 0x0f
> +#define INPUT_DEVICE_ID_SW_MAX 0x10
> #define INPUT_DEVICE_ID_PROP_MAX 0x1f
>
> #define INPUT_DEVICE_ID_MATCH_BUS 1
> diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
> index b6a835d37826..0c2e27d28e0a 100644
> --- a/include/uapi/linux/input-event-codes.h
> +++ b/include/uapi/linux/input-event-codes.h
> @@ -888,7 +888,8 @@
> #define SW_LINEIN_INSERT 0x0d /* set = inserted */
> #define SW_MUTE_DEVICE 0x0e /* set = device disabled */
> #define SW_PEN_INSERTED 0x0f /* set = pen inserted */
> -#define SW_MAX 0x0f
> +#define SW_MACHINE_COVER 0x10 /* set = cover closed */
> +#define SW_MAX 0x10
> #define SW_CNT (SW_MAX+1)
>
> /*
> --
> 2.24.1
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Powered by blists - more mailing lists