From patchwork Wed May 15 13:11:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin GAIGNARD X-Patchwork-Id: 10944743 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 7ED081395 for ; Wed, 15 May 2019 13:12:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EDF2289EC for ; Wed, 15 May 2019 13:12:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CC5928B74; Wed, 15 May 2019 13:12:36 +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 0AC4D289EC for ; Wed, 15 May 2019 13:12:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727590AbfEONMa (ORCPT ); Wed, 15 May 2019 09:12:30 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:60898 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727499AbfEONMU (ORCPT ); Wed, 15 May 2019 09:12:20 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4FDBhEL004299; Wed, 15 May 2019 15:12:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=PcTbp14GM3Mxz+zqvEsn1niPCjuTf8GT2tk2Gi5qUTg=; b=FzMUmPhVtN3V7xWPWMIQFZ2K5RRaZ9Mds6q2QX7/CVbbkbMqOAZiIdU3jOARwXWPL/LF TYZs/0XC9FHMssVln+N2OFjtMNQIl566Jc/gT7FhnDFJuNTizqFh/1sTKVgY1HxLD+w1 FiIhxxBKKqxVAhunOUq0QH4ALvmBcHV7MXSdqD0VQ8nYg9eIMRdLE7+gfJ0m0nef1lLE UHy0oDjWNeGEG7HQVayfsY1twGOVagl3SYdZKy8eVZOnEzcdqNM85v/uLFxnqVrSkQ3/ FxMctpbgO8SsTIMtZ4d0EkYRmu8qlGqkrccN2xV6XHwnmeVBJvdsO3pDhclCi/8strA6 QA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2sdn9g0yex-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 May 2019 15:12:11 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D8A1731; Wed, 15 May 2019 13:12:04 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B480127F6; Wed, 15 May 2019 13:12:04 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 May 2019 15:12:04 +0200 Received: from localhost (10.201.20.122) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 May 2019 15:12:04 +0200 From: Benjamin Gaignard To: , , , , , , , , CC: , , , , , Benjamin Gaignard Subject: [PATCH v2 3/5] input: edt-ft5x06 - Call of_device_links_add() to create links Date: Wed, 15 May 2019 15:11:52 +0200 Message-ID: <20190515131154.18373-4-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20190515131154.18373-1-benjamin.gaignard@st.com> References: <20190515131154.18373-1-benjamin.gaignard@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.122] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-15_07:,, signatures=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 Add a call to of_device_links_add() to create links with suspend dependencies at probe time. Signed-off-by: Benjamin Gaignard --- drivers/input/touchscreen/edt-ft5x06.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 702bfda7ee77..65053be10d4e 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -1167,6 +1167,8 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client, i2c_set_clientdata(client, tsdata); + of_device_links_add(&client->dev); + irq_flags = irq_get_trigger_type(client->irq); if (irq_flags == IRQF_TRIGGER_NONE) irq_flags = IRQF_TRIGGER_FALLING;