From patchwork Tue Mar 7 23:45:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roderick Colenbrander X-Patchwork-Id: 9609991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11C0B6046A for ; Tue, 7 Mar 2017 23:46:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02F4728535 for ; Tue, 7 Mar 2017 23:46:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB9942858C; Tue, 7 Mar 2017 23:46:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A642B28535 for ; Tue, 7 Mar 2017 23:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754078AbdCGXqw (ORCPT ); Tue, 7 Mar 2017 18:46:52 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36068 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933271AbdCGXqo (ORCPT ); Tue, 7 Mar 2017 18:46:44 -0500 Received: by mail-pf0-f171.google.com with SMTP id o126so6630643pfb.3 for ; Tue, 07 Mar 2017 15:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaikai-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wxV95H5gJcjmok7bResRFq9yVkw+NGUXdbskxmaepH4=; b=Wnu1OBYWGoaO9eAHgl+cdmxhd37h9fsr8pK4Mbnpi/VEqnl8sUM4yZ2mgAWClgccXw el5ifpzfDpuiqqWYK7Qgdf8wprGwXAzBux7VisUQsCXfaUQq3Y3oa6rQd/txrJhi2HQu 1lG7t1dX15yfH4C8HJSJ2kcCG1nRBoOsLzFCcXZEaeZNHUa/CK63vBdUpfpoe7cFL77y NFcgVvRAQ3G+hj21xBgc6n8cnn0GNzy81LStet+H/Tp4jW5SCIvXL4YueTey5qma5a3y +17ZZ/CNBj48bv1PJp+vjaKuo1gsX2A7FVatciS8SAfKbPFkMg1tkVOc3TAeEml1HN9o fsYg== 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; bh=wxV95H5gJcjmok7bResRFq9yVkw+NGUXdbskxmaepH4=; b=AU8YNkxuAo4hOBArUlwwkj/qZKoxVMwXRFwJQ7XUfkjKfM75bJdF7N/JwMQqnqG60T 9jYiYaen/VfnEu92IlhlUyX3lnyIxRKNznzbF8JvtMWn1Dmi8/oQsjuyX73ldDa2d6O2 k+q0FJTaGzGrOjGVIaLweakxIhoq2hRW7lRH3ARRnMSMZFJXtnt77LppQYdkVTGFn5Uh cuCRKChd1yqQw2Y1nFNd1UCeLR4xqAkz5uhiFiG3k8KUSb4OAJ7nXV8+tFucDN4eYFwG vYCmkQir+Am2UwURgWvaFDRb05NMBVRI8hfNjPEiNthkdKeIJLZp1yjBO8PBtfNqCgW1 9sSA== X-Gm-Message-State: AMke39leaRb2JgBXRNbTeBSu8GS/mC0ccHanUhvV+X/1S/243MBbkieyOqgxrEYdlq/kDvsZ X-Received: by 10.99.153.1 with SMTP id d1mr3458361pge.44.1488930322679; Tue, 07 Mar 2017 15:45:22 -0800 (PST) Received: from roderick.ad.gaikai.biz ([100.42.98.197]) by smtp.gmail.com with ESMTPSA id e7sm1890993pgp.2.2017.03.07.15.45.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 15:45:22 -0800 (PST) From: Roderick Colenbrander To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Jiri Kosina , Benjamin Tissoires , Simon Wood , Frank Praznik , Tim Bird , Roderick Colenbrander Subject: [PATCH 08/12] HID: sony: Mark DS4 touchpad device as a pointer Date: Tue, 7 Mar 2017 15:45:07 -0800 Message-Id: <20170307234511.30380-9-roderick@gaikai.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170307234511.30380-1-roderick@gaikai.com> References: <20170307234511.30380-1-roderick@gaikai.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Roderick Colenbrander Currently the DS4 touchpad device is neither classified as a direct input device nor as a pointer device. It makes most sense to mark it as a pointer device. Signed-off-by: Roderick Colenbrander --- drivers/hid/hid-sony.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index de74d5a..1c62698 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -1236,7 +1236,7 @@ static int sony_register_touchpad(struct sony_sc *sc, int touch_count, snprintf(name, name_sz, "%s" DS4_TOUCHPAD_SUFFIX, sc->hdev->name); sc->touchpad->name = name; - ret = input_mt_init_slots(sc->touchpad, touch_count, 0); + ret = input_mt_init_slots(sc->touchpad, touch_count, INPUT_MT_POINTER); if (ret < 0) goto err;