From patchwork Tue Mar 3 00:56:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajat Jain X-Patchwork-Id: 11416973 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B06B91820 for ; Tue, 3 Mar 2020 00:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 848A324677 for ; Tue, 3 Mar 2020 00:56:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Z9RypMQm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgCCA4x (ORCPT ); Mon, 2 Mar 2020 19:56:53 -0500 Received: from mail-pf1-f202.google.com ([209.85.210.202]:41592 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbgCCA4w (ORCPT ); Mon, 2 Mar 2020 19:56:52 -0500 Received: by mail-pf1-f202.google.com with SMTP id w11so803621pfd.8 for ; Mon, 02 Mar 2020 16:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=MjWn1xssQfoWQqE8a57xumnRtF/eKeos54BJPVuyJV4=; b=Z9RypMQmX1DwNAhQzgfwPiu4aHPUXLU7YWppGyRQBOx+02/19l5Mv6xS1CrmVHCise DMj/S7jt7FrFtvKkvxIvmKI/qPyJ0niR5A1bmQCf/q8WeQkeCnojsu8MddM0cqG8GBL3 +iVLA8T1LvHeoIV4Ah2OWHyaectOrGPnUnACxbEbKRjXhh0m9C8FLRv0H5GMgV8BOwwv 4822cYDagLBndX9/hi+Mq6gootKGvIGA65N29T8czKm11A8GVSsbUcKEeTK6kmTJlXo1 Z+EiByzfI4wUTbbFIpuKBq8vFPum7sDOk/Kud4ZwO+gPibd0zVhWOmD3zhvMw6bYGdqW 9rfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=MjWn1xssQfoWQqE8a57xumnRtF/eKeos54BJPVuyJV4=; b=D4Gy7GC4MuJ11iRG9Ofn8QokJQf3p21xZSsQYxwSLgrs7XydgeaIu1u3WXzIj0DXM3 cMN59h7buvJ9Y4u19VDyiDIKYigbGU6YYEMXVKbkpPPosI2aREZWzb7oFkWOpBsS33PK BYUoLwy78c3zdTfDQumWQLu0iqa2AkkRwIrRBbcuNzZz/zc48hqmHV5dfBIYrkfeohM1 k3eMajydj2Ngc6MImWbX3xOD/Ur0GNCT/V81Jp5oBYaJpuDozVrniFKVXVUzDkwswlAI ebb3OmpQfaVtWNQTkuiqbl4Q6UeDLixA/AeS12Eo4DnsFLyfz7akLLicUzj21Kc4D0d0 ScJg== X-Gm-Message-State: ANhLgQ0B1uh6M86JYVuMis7py5+ag7TIKCSJ+RcohSHnUCL+Lyo48XIN ysOYd7CKjtredJwpl5OL9m7CqRUMKXn0 X-Google-Smtp-Source: ADFU+vuTvBWJoDi9HjHUHwiqoNQ82VV/Guk+HqRmAyeMFXexpzrcVUJWMfZFz+RVBN7mv9wOQpa0LCXnMV/+ X-Received: by 2002:a63:ad42:: with SMTP id y2mr1524288pgo.445.1583197010143; Mon, 02 Mar 2020 16:56:50 -0800 (PST) Date: Mon, 2 Mar 2020 16:56:44 -0800 Message-Id: <20200303005645.237763-1-rajatja@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog Subject: [PATCH 1/2] Input: Add keycodes for keyboard backlight control From: Rajat Jain To: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dtor@google.com Cc: Rajat Jain , rajatxjain@gmail.com Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org New keyboards can have backlight control keys. Allocating keycodes for them. Such keyboards are already available in ChromeOS. Signed-off-by: Rajat Jain --- include/uapi/linux/input-event-codes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 0f1db1cccc3fd..e12a19dc30262 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -652,6 +652,10 @@ /* Electronic privacy screen control */ #define KEY_PRIVACY_SCREEN_TOGGLE 0x279 +/* Keyboard Backlight control */ +#define KEY_KBD_BKLIGHT_UP 0x280 +#define KEY_KBD_BKLIGHT_DOWN 0x281 + /* * Some keyboards have keys which do not have a defined meaning, these keys * are intended to be programmed / bound to macros by the user. For most From patchwork Tue Mar 3 00:56:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajat Jain X-Patchwork-Id: 11416975 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1141C1820 for ; Tue, 3 Mar 2020 00:56:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E44B52467E for ; Tue, 3 Mar 2020 00:56:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="injIeMqM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbgCCA44 (ORCPT ); Mon, 2 Mar 2020 19:56:56 -0500 Received: from mail-qt1-f201.google.com ([209.85.160.201]:53577 "EHLO mail-qt1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgCCA44 (ORCPT ); Mon, 2 Mar 2020 19:56:56 -0500 Received: by mail-qt1-f201.google.com with SMTP id g6so1109805qtp.20 for ; Mon, 02 Mar 2020 16:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=SULigJR1aTK5nhD4DW5vzLxOpw0a6L5bA6kmDOAsplI=; b=injIeMqMZawiZtbu21dhSltYB0O5rhrqzMybRcK8b6oGBM9+5KYW9+Pl3/HksCicAq OafNYFAgvdHTQplSo4Hp8ANg3N3TnxSepZ54fa5l0i/mschehgdcxT32ZDTK5G8pL46p R2fG29+YkvYSf/WxXFXj7ZFGZPzTpE1VuEoUjM4UPBbc7BDfVNrItSzqZALf+0+TMld0 Za4C9Tox8rorBeZDuVqisBvsBiEx99FiywWEEZoJB7a7KLuc2S8e5oBpx4FXcSoL2ocZ D01RX3pR/6WmvIyhmsah2gKKY+H2I93ABHs/nNJK5Gs+drLBYD0e0nWK3+YgpLL5sRbH Ghtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=SULigJR1aTK5nhD4DW5vzLxOpw0a6L5bA6kmDOAsplI=; b=OdbK2jVf3WVvDcmxYk602OOD7q/elagLU0KfdII6aurqzazw3B4gJ2D2mx+sqgYC/Y YC4PWHiwa6/btHzyNfrPnuT9z8x2Kuy5C6pffkezlPxKiz6eQj7ZskQJBS0MEKTHA4MA ArPI/YmAstUqwfQ159TKE35Vp+UKN8RIUMclIRxUs+XU3EjPFXY9iTbVXwXxLUO9Anos fa2Qdl5BeCxd3Maz1/U4KQ4fjb3fgcMGwUQ0tJUtBhVK0b9YIIEpuws/Gdo/c79OwrA9 krftroRsOocvKHM2OJ8JFJ8YGNEkBYjXjP+MuIwTz9QX7hosUT/NKcXecS8bi/GRvu5y d+uw== X-Gm-Message-State: ANhLgQ3+IqPCHhPEFxO9Kp0ypoH6dWbWPoD4ncfDvmSRHiyH8ahOE909 LDKsIXf0M7O3J+iAKyIOuTD1BNXwxVJc X-Google-Smtp-Source: ADFU+vvXjBgQ/YGbN50roM6YKMJ/M+jQtstx9IRDHO2a0UEkj4Q3JoN3kO4kxSzTHaSfEs4ikepPnM3qRL+n X-Received: by 2002:a0c:ef05:: with SMTP id t5mr2014421qvr.240.1583197015091; Mon, 02 Mar 2020 16:56:55 -0800 (PST) Date: Mon, 2 Mar 2020 16:56:45 -0800 In-Reply-To: <20200303005645.237763-1-rajatja@google.com> Message-Id: <20200303005645.237763-2-rajatja@google.com> Mime-Version: 1.0 References: <20200303005645.237763-1-rajatja@google.com> X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog Subject: [PATCH 2/2] Input: Allocate keycode for SNIP key From: Rajat Jain To: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dtor@google.com Cc: Rajat Jain , rajatxjain@gmail.com Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org New chromeos keyboards have a "snip" key that is basically a selective screenshot (allows a user to select an area of screen to be copied). Allocate a keyvode for it. Signed-off-by: Rajat Jain --- include/uapi/linux/input-event-codes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index e12a19dc30262..51f419657d044 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -656,6 +656,9 @@ #define KEY_KBD_BKLIGHT_UP 0x280 #define KEY_KBD_BKLIGHT_DOWN 0x281 +/* Selective Screenshot */ +#define KEY_SNIP 0x282 + /* * Some keyboards have keys which do not have a defined meaning, these keys * are intended to be programmed / bound to macros by the user. For most