From patchwork Fri Oct 5 08:14:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger-Novakovic X-Patchwork-Id: 10627587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1061915A6 for ; Fri, 5 Oct 2018 08:14:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05B5B2926F for ; Fri, 5 Oct 2018 08:14:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED13929277; Fri, 5 Oct 2018 08:14:28 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 3D68F2926F for ; Fri, 5 Oct 2018 08:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728629AbeJEPL5 (ORCPT ); Fri, 5 Oct 2018 11:11:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:42182 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728497AbeJEPL4 (ORCPT ); Fri, 5 Oct 2018 11:11:56 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id DFD9C20DBD for ; Fri, 5 Oct 2018 10:14:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1538727258; bh=QtsZEHeRfZ7OJkkRthjjZYZ+sD/UaKSAGERjoV2u/1I=; h=From:To:Cc:Subject:Date:From; b=oGwj76b0cbhX06BgleCBphK4n8fFCuRl1MHmDdoiiReS0EO5IFHd4xR/X/pLhmmUU 8loFqVu1fHsFQaJNYCXBp88Gmiifb9UuTkK2FnMjoN6d5bOhHen2rMuI4Zw8ieX7oc RK76UZPPZy/+QoEndENQc+K74INmf0VGfybf/Y7cQXMQ89hkQTHHCnW01uclmSmf9B 4go2awIxgFea/A73iKk5AUXUKLvU+whQXJE/uGAVU0ZxYgyGVVJcTXMvitjuWTosOH KbmRrZo6kOxQzDgsPzT94KMGrRB3JJC/+ZmoxeNkC/Ukq8l4rhWdHrZrLoxosOquTv rdW+dsqPlvv8w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 42RMwp2F0xz6tm5; Fri, 5 Oct 2018 10:14:18 +0200 (CEST) From: Martin Kepplinger To: dmitry.torokhov@gmail.com, geert+renesas@glider.be Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH] input: st1232: set INPUT_PROP_DIRECT property Date: Fri, 5 Oct 2018 10:14:07 +0200 Message-Id: <20181005081407.15376-1-martink@posteo.de> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 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 This is how userspace checks for touchscreen devices most reliably. Signed-off-by: Martin Kepplinger --- drivers/input/touchscreen/st1232.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index d5dfa4053bbf..b71673911aac 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -195,6 +195,7 @@ static int st1232_ts_probe(struct i2c_client *client, input_dev->id.bustype = BUS_I2C; input_dev->dev.parent = &client->dev; + __set_bit(INPUT_PROP_DIRECT, input_dev->propbit); __set_bit(EV_SYN, input_dev->evbit); __set_bit(EV_KEY, input_dev->evbit); __set_bit(EV_ABS, input_dev->evbit);