Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp16823pja; Fri, 22 Nov 2019 02:51:52 -0800 (PST) X-Google-Smtp-Source: APXvYqyI6bmYKxpzqovuFupcsEyHTyYh5BJIEgEVr6x5JcmsSzSGDbbKxOyOXusqJNPjZbsnPJp7 X-Received: by 2002:a50:fa83:: with SMTP id w3mr252893edr.272.1574419912003; Fri, 22 Nov 2019 02:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574419911; cv=none; d=google.com; s=arc-20160816; b=U8ZuKfeQqZikpJmeCtBfqIxB+5llzTyah6hPO1zsd1PIQM+NIW3wBHydNnj5FNTauV ATBztPk+suj+r+UrvCiURuszsHdXlWbndykxkisXsMy24WwD6w4v/1NP7dCY/pyDMRtO xfuhVee2dZ2YFRKJEbC06/9bCEgDkhFXHMVbJ3Yv69Erzwck0pHeVOESnOZBqsTpwZvG 0XOj7hSt4w3aMmeM68sn4o1IjGswX3WcJaS0z0RMuUEb/iwkTjPIROUfRLhMkQ/2y1bc EPGMkKrwlkcvjuCeIehyKlGDHnEbpxP4mZ/EQu0cMkdcg+kFwnADWBzM+DryJh1xdufh ibjQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XEBII991Ljs0HjIYlJxlTyiP6h7MZ25h+U2FEZqY7dA=; b=Nn3DB2vfQ5SMy2VM9ipGfpVieMKM/JsmRA2oywmjzJMVDESyQElLmwQDnjFkp9bFSW oxrd7XYEU+QZisZuAiWZnTCt9zMbKzGI9Glrib9iGId3r3gtygeMW4cO7BopBuMd/xhp FB56hPxTCPTF4Ox6n5wA8Oah7bydLHKYu7Qa+ZrvTksrxC/fFPhLhErirv30RU4g001v /gihj88EyP9rMBRE0kGL/EOx66V1Xwd/d+WV9ef1aOCSIw7LrRmhV7r99UD8PnO7Hly5 ks0nfSaUMzX2+IxQokabsQPFBYoMuB6vuiYkKGTKkQjsnKbIv3j7SDr300NUXwOcyL7G YImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BTAsg0xt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u93si827078edc.184.2019.11.22.02.51.27; Fri, 22 Nov 2019 02:51:51 -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=@kernel.org header.s=default header.b=BTAsg0xt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729119AbfKVKrz (ORCPT + 99 others); Fri, 22 Nov 2019 05:47:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:56054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728281AbfKVKrv (ORCPT ); Fri, 22 Nov 2019 05:47:51 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE8EC20637; Fri, 22 Nov 2019 10:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419671; bh=fI/sHNHGSc0l4/Uf78vJqDg2ySHPHwPPg75JGYqJpZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BTAsg0xtKT5v/1PhK2Lk0Zjjli02/B7LH/aRXsnRULgdG+tdm3gKU8rrUdOz7Vv7W QZxRGW+4e7xQrDG2r7kSsIGWJuYaLBJHun2wqcQv9W2bfqv4anxL/GehTZGXRWMQG0 MvEqiqhT/w99Gff+YUx7udwTmZ4b3vzCsBrFmIsQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Kepplinger , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.9 192/222] Input: st1232 - set INPUT_PROP_DIRECT property Date: Fri, 22 Nov 2019 11:28:52 +0100 Message-Id: <20191122100916.143861897@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100830.874290814@linuxfoundation.org> References: <20191122100830.874290814@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Martin Kepplinger [ Upstream commit 20bbb312079494a406c10c90932e3c80837c9d94 ] This is how userspace checks for touchscreen devices most reliably. Signed-off-by: Martin Kepplinger Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- 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 e943678ce54cd..f1c574d6be17f 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -203,6 +203,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); -- 2.20.1