From patchwork Wed Apr 24 10:19:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Benjamin GAIGNARD X-Patchwork-Id: 10914445 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 0154B922 for ; Wed, 24 Apr 2019 10:20:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3C8428867 for ; Wed, 24 Apr 2019 10:20:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D782728A71; Wed, 24 Apr 2019 10:20:34 +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 86AE428701 for ; Wed, 24 Apr 2019 10:20:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbfDXKUK (ORCPT ); Wed, 24 Apr 2019 06:20:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:54164 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728254AbfDXKUJ (ORCPT ); Wed, 24 Apr 2019 06:20:09 -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 x3OAJwBK012732; Wed, 24 Apr 2019 12:19:59 +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 : content-transfer-encoding; s=STMicroelectronics; bh=bu+FSSjL3xpYfr+iGtfEQuju6aILlJj4WyU2xE6oOeo=; b=lEzuZVIw0jUl623w6v6mXcpjyoC9rtmVEepCEWXaArJ33dbZb1ONwwS4mm+XlxhyCwqB GEIN7IfPZhT9s++dhMO/3ZO/3cxxvQ+/1QAwHZyJLDRgE8HKUePNH4wO/AxMgqB3LgJt C25u9xl0IzrT327KCCg+szDLGaGE3IjqJ0bH3lFN0QGF1n08RsZ6C44jjAdgBvDHW+fE LMHPZ1o/dOh8Yht//c/Hi+Fe68ti+YcE+DgP6Sx4Ef5xTzRzSPIA0e7VPU4DvL4LY8TG Zy+uKvKu0QA0ukl2660tNDc/k8dF2ZSDtRBaJC/uBq0npR2thU4sGxsfs82SIcgGsA13 fA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rytad5ubw-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Apr 2019 12:19:59 +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 3A20138; Wed, 24 Apr 2019 10:19:46 +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 180E21653; Wed, 24 Apr 2019 10:19:46 +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, 24 Apr 2019 12:19:45 +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.361.1; Wed, 24 Apr 2019 12:19:43 +0200 From: Benjamin Gaignard To: , , , , , , , , , CC: , , , , , Benjamin Gaignard Subject: [PATCH 5/5] input: goodix - Call devm_of_device_links_add() to create links Date: Wed, 24 Apr 2019 12:19:13 +0200 Message-ID: <20190424101913.1534-6-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20190424101913.1534-1-benjamin.gaignard@st.com> References: <20190424101913.1534-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-04-24_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 From: Yannick Fertré Add a call to devm_of_device_links_add() to create links with suppliers at probe time. Signed-off-by: Yannick Fertré Signed-off-by: Benjamin Gaignard --- drivers/input/touchscreen/goodix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f57d82220a88..9aefbfa39319 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -30,6 +30,7 @@ #include #include #include +#include #include struct goodix_ts_data; @@ -812,6 +813,8 @@ static int goodix_ts_probe(struct i2c_client *client, ts->chip = goodix_get_chip_data(ts->id); + devm_of_device_links_add(&client->dev); + if (ts->gpiod_int && ts->gpiod_rst) { /* update device config */ ts->cfg_name = devm_kasprintf(&client->dev, GFP_KERNEL,