Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3699077imu; Fri, 18 Jan 2019 15:33:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN7H8LNttecXOL8fMoNkeEIsxTF+4JKxQolZlAp1ayn/D4Wq/oaH6aeZJtl2kbQK6hdQ21AI X-Received: by 2002:a17:902:8a95:: with SMTP id p21mr21422557plo.183.1547854384392; Fri, 18 Jan 2019 15:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547854384; cv=none; d=google.com; s=arc-20160816; b=bhP/H5uDfTP3inxlxUHw7jYTfeFD4tNQN1Yr4OTA8cLA5dkvitZ71V7Ve3DIkGTTKj VXq/wrxFt81V085FzW71diQMdeO+II4e7kNiFu/M7AXYOgk8s4HdJlouIPkhnX3uRKIM 5NXcQllgGSxI6kLxEFa++64gGcSHL6ayS4Z9Hy7JCZphPtZ0Ilw7EMuczaLMR4W1x05K WKdKLaGjt6aMB7b5zsPUAyha+XpIjV9qIXDyZx8ecTZHfy1RRbWcuW7jGoMiK9ae4ccZ 82JvS+6w/x/Y2lk1aQ+dgxxaodF4wg+YblJywv/hZWNebr1dMcGfxS0zJdYeyzHpn3o7 0bQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3ga+oVqHLm0lhA1fwqdUImX2t8PWwD8cjXiVk50icN8=; b=MM6PcQWond0R2QRFBKSjk/YBqRCmRq0oR+lZKt1biHqYsuGueZmSO5Qt2TRRUEkrzT E2edF+zuUXSd3D8suKl3fx4XLWpew1Xtpp40IfhmU3MPShTaLFZauMtB5/de0VmKwD23 qbWemHtfUWK7WELpYiIRJ1AcKMeJxOA5/6DUj3WKGUtxpOdifB5gM4NWjUNAFdbj2U/u b/iI2O2oP9G7fjenTDwVZRyIJ1JpdjFlm4zNZ3vdK7SIMF1IvZ6rajS4+9aT2VyAG1KY fH7E+Onkcg6qd31DaZcaArTeawX4ckNrsf6q18Y3qxa32zsRh/UN7eKZaPsvgVrQ2x9p rs2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W1w1TXBC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si5790306pga.328.2019.01.18.15.32.48; Fri, 18 Jan 2019 15:33:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W1w1TXBC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730273AbfARXbJ (ORCPT + 99 others); Fri, 18 Jan 2019 18:31:09 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40073 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730188AbfARXao (ORCPT ); Fri, 18 Jan 2019 18:30:44 -0500 Received: by mail-pl1-f196.google.com with SMTP id u18so6991865plq.7; Fri, 18 Jan 2019 15:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3ga+oVqHLm0lhA1fwqdUImX2t8PWwD8cjXiVk50icN8=; b=W1w1TXBCGuopLfkanOl9XZW3ZUDryRB+Ze8+SZsvH8SKGavMTHWiGxqC+u6Pg5L9iu R3d4kmezOtX6uH3FdJRUdBuK2IJNv8lLJWj8skF80M4L+5cTlelznYk5d6qzkLDhMbEf Csdsjb8xyIdAatH+3KxnxrIdgxpq570CrE+gsXGYNciRqFjWPC7+7jc4KnMPdQqLPyRK J2bjvsjLT5Pvp8TkYy4l5XyLHH5KzVBkZPfAKiBKqfTDVlgmJ6AIe1UCpm7iNnzYPb9B ZyTtTYlHF4rsAK7nDBOv9cy951NqKo8F4KED0bcyJi94J99BOAiaXstt9hctpJLQmqNS vaYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3ga+oVqHLm0lhA1fwqdUImX2t8PWwD8cjXiVk50icN8=; b=Gnox6+A/2cwy2AFBztX3dLgv3ou/aBN75l5f8WmkDDquFKaYfWjS51do93Bl0NL+sP JYch4T0+Fl0fzp7q9WxjjPBpzi8EkpiEk83YgjgbZRsqLe0TVLzEz0sipvDicsdWatsx vnaDdCqNxJyivVw+mkBIA6RwPt73fGIhCP/miU7fJczlTxEXwl2SXFl7zh0YGmEZyQes hy8HANkhGjqHOgZdSGKu1Ob0KwBisVS951QeuHj2CYrvztDVsGJI5moT49SFALjwjFHZ rvgMUyPKYMS4Otz0qoYNQ5JnVWmsoBsDfIgLJoHE5Skj6o1ZMBVJBJlspVDNo7erhftY HWmg== X-Gm-Message-State: AJcUuketLREyDYZExYjZFOYeGiJbW+cJzLESoIs8s0Hm+6hfFlfypzsG wdZiKwYWgXisJKHkbx2k53w= X-Received: by 2002:a17:902:848d:: with SMTP id c13mr21059934plo.257.1547854243292; Fri, 18 Jan 2019 15:30:43 -0800 (PST) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id f6sm11857163pfg.188.2019.01.18.15.30.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 15:30:42 -0800 (PST) From: Dmitry Torokhov To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] HID: input: add mapping for Expose/Overview key Date: Fri, 18 Jan 2019 15:30:34 -0800 Message-Id: <20190118233037.87318-4-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog In-Reply-To: <20190118233037.87318-1-dmitry.torokhov@gmail.com> References: <20190118233037.87318-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to HUTRR77 usage 0x29f from the consumer page is reserved for the Desktop application to present all running user’s application windows. Linux defines KEY_SCALE to request Compiz Scale (Expose) mode, so let's add the mapping. Signed-off-by: Dmitry Torokhov --- This can be applied independently. drivers/hid/hid-input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index def58c6aa835..5f800e7b04f2 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -1030,6 +1030,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; + case 0x29f: map_key_clear(KEY_SCALE); break; + default: map_key_clear(KEY_UNKNOWN); } break; -- 2.20.1.321.g9e740568ce-goog