Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2349973ybt; Tue, 16 Jun 2020 03:53:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykeqv+Ivfa42I3A8qgBD3XjIhTWHWWIya7AAU9P8Gte0wCjyz4y4P54uTmfpA60VbavbeX X-Received: by 2002:aa7:da8c:: with SMTP id q12mr1988697eds.385.1592304818718; Tue, 16 Jun 2020 03:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592304818; cv=none; d=google.com; s=arc-20160816; b=kYjZvBF2Bw37SW/NVaCz7VE1dwYB2wdrAYR/WGjW47jKh/1nwAb0V08ePcsShATOSu m25/HDiKAhj/OGJpzuA1Z15R30Xu/LRzt5IskzMNs8Arke0DowWwojMSJ4zKaSzBzDUH 4iZoQMNLtBk5alkk1jLwhlgxk0dzCLEZ+N1sQRg+00ZW4tUebGn/eYGmguTmRF5DmVIs W3QDkWLlztBM7UQeGZjLhWmt1S+Zwtx579dcJ/Z/XIMEXgg1ldeO7PlYNZI/cVaEtqeA focglZJ0MacK7b4KYH3UaNj4ZLVcSlzZ+/Z7IC1/sjBTeG3HguQMZGejn95zquOeHRNq JDYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tospbUm+BJ0uExrQLCorjRJ8SScBrAa5HMfvEeFkIV8=; b=0R3riI3JrlN1CS1w3NrZ2jXjE0deW8c3c19zcyuhDs+lzMsMHfutBymkMPTptsqwir ePzSvVCrV+7bWGBTEOzXnFSiMi6vIavRC0P4I42oWFi/utj2eMp3I5XukeisqyB29EhZ QeWnuUC1qJpXL57U2qIUBid3rVhjmfiynNt/QNLCefCTeKqvM24FQwxkpuPhMSqcDY3u LFtKQ24g2kAJh9ZwRCSOYtW3fH2FE8aJmv9OYeNgjvvEf0LXEu9u1iAA36F3XikudFDA wAMhpH6M5xDJMO4ceLrE8EFPXCx7ipmyAHqbhYEvDiM4h0RjpVBPHgfdZFXM6qMr5McT de8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si10553254edq.488.2020.06.16.03.53.16; Tue, 16 Jun 2020 03:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbgFPKu5 (ORCPT + 99 others); Tue, 16 Jun 2020 06:50:57 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:53312 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgFPKu5 (ORCPT ); Tue, 16 Jun 2020 06:50:57 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 1B0FC1C0BD2; Tue, 16 Jun 2020 12:50:56 +0200 (CEST) Date: Tue, 16 Jun 2020 12:50:45 +0200 From: Pavel Machek To: Merlijn Wajer Cc: Sebastian Reichel , Tony Lindgren , Beno??t Cousson , Rob Herring , Dmitry Torokhov , Greg Kroah-Hartman , Borislav Petkov , Andy Shevchenko , Manivannan Sadhasivam , Thomas Gleixner , Mattias Jacobsson <2pi@mok.nu>, Mark Gross , Russell King , "open list:OMAP DEVICE TREE SUPPORT" , "open list:OMAP DEVICE TREE SUPPORT" , open list , "open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..." Subject: Re: [PATCH 1/2] Input: add `SW_MACHINE_COVER` Message-ID: <20200616105045.GB1718@bug> References: <20200612125402.18393-1-merlijn@wizzup.org> <20200612125402.18393-2-merlijn@wizzup.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200612125402.18393-2-merlijn@wizzup.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Tony Lindgren > Signed-off-by: Merlijn Wajer --- 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