From patchwork Thu Aug 24 23:11:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roderick Colenbrander X-Patchwork-Id: 9921089 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 CC34560353 for ; Thu, 24 Aug 2017 23:12:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE5371FF83 for ; Thu, 24 Aug 2017 23:12:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B31011FFDA; Thu, 24 Aug 2017 23:12:06 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 505121FF83 for ; Thu, 24 Aug 2017 23:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754133AbdHXXMF (ORCPT ); Thu, 24 Aug 2017 19:12:05 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:37793 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754095AbdHXXMF (ORCPT ); Thu, 24 Aug 2017 19:12:05 -0400 Received: by mail-qt0-f172.google.com with SMTP id d15so4510724qta.4 for ; Thu, 24 Aug 2017 16:12:04 -0700 (PDT) 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=rVQfXUyxvGGB/SIDERrDp1JqmL4NXj5X0iK/Q9LQ2W0=; b=ltGZN8HZNIN3zVV2mq3QU3hLmD/VuqwG7karhR1v23Oj2U2BS9CECA+VtQy6z3dDVB 8ttfpLJjniSpXd5wi/xfJs9lb6pTmClbNSr7gC55m7cQJvBPXZxO6Urv2dHqtw4qos8N BTlPX5ZeYqOvfXFikapZ8ETD0+FrvJo/NcA3siTUyGcVvUca/GaaSkqAeMAshUkDSybE rp4N8yJZecRxywvobeMsOUdG1ScRh3RJsIbdS+RaKhh6AAhTwfu2to2vq7YgTvx7JdrE /BFC0CrtPpxC5P/9TBuXRyv45Z3Bz0AN/OkDpdWnDB41NyzTaEnmXpOwpuYJdfuatusL Zg9w== 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=rVQfXUyxvGGB/SIDERrDp1JqmL4NXj5X0iK/Q9LQ2W0=; b=ZXRRw8VqWZCgXVGDdzftFwAMzjAaaH4RDacXPnHhb0rLFnxJUAoYx86NjEMs/NV9lm U8I4WwVWSBHRkBOsSV02Bit9x5xVO1/GXsLOQP+gxFAdCWHFNHnSA4/I+QwNidY0e4m2 PyJdWljbZ/NfbV80gwtQ2Y14Eof9jWeVmR2Y9SMc42c08bEIo4z/+IULnU/Q5ZeN1YbW 68vCcEXo9pmmMxdoys43tBjMNnfaQpzA5/NYDVV/9+90lidwCteMy7djT2OwI/3NlZVK t0thA09m6nZAwSlM5NTw3+e7Ao3JdQE9WF+9JJ6rmANwFjC2K89i0KvxDUb163BTjuwr T1mw== X-Gm-Message-State: AHYfb5ijV4x4zx6EcRdY2rAb+VSSYXVgLEWInAdXzztFshrsuJQhhoQl daxCizdWv+nd8rytq+IZqw== X-Received: by 10.200.39.206 with SMTP id x14mr11350210qtx.259.1503616324039; Thu, 24 Aug 2017 16:12:04 -0700 (PDT) Received: from roderick.ad.gaikai.biz ([100.42.98.197]) by smtp.gmail.com with ESMTPSA id w16sm2955980qta.4.2017.08.24.16.12.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Aug 2017 16:12:02 -0700 (PDT) From: Roderick Colenbrander To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Benjamin Tissoires , Jiri Kosina , Bastien Nocera , Roderick Colenbrander Subject: [PATCH 3/4] HID: udraw-ps3: Set INPUT_PROP_JOYDEV_IGNORE for motion sensor Date: Thu, 24 Aug 2017 16:11:52 -0700 Message-Id: <20170824231153.8809-4-roderick@gaikai.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170824231153.8809-1-roderick@gaikai.com> References: <20170824231153.8809-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 Set the INPUT_PROP_JOYDEV_IGNORE flag for the motion sensor device, so it won't get picked up by joydev. Signed-off-by: Roderick Colenbrander --- drivers/hid/hid-udraw-ps3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-udraw-ps3.c b/drivers/hid/hid-udraw-ps3.c index 88ea390..7ea4066 100644 --- a/drivers/hid/hid-udraw-ps3.c +++ b/drivers/hid/hid-udraw-ps3.c @@ -379,6 +379,7 @@ static bool udraw_setup_accel(struct udraw *udraw, input_set_abs_params(input_dev, ABS_Z, -512, 512, 0, 0); set_bit(INPUT_PROP_ACCELEROMETER, input_dev->propbit); + set_bit(INPUT_PROP_JOYDEV_IGNORE, input_dev->propbit); udraw->accel_input_dev = input_dev;