From patchwork Mon Oct 14 18:43:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 11189761 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0E14A1668 for ; Tue, 15 Oct 2019 07:13:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EABAD217F9 for ; Tue, 15 Oct 2019 07:12:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EABAD217F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 822846E60C; Tue, 15 Oct 2019 07:12:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3FE016E526 for ; Mon, 14 Oct 2019 18:43:24 +0000 (UTC) Received: by mail-pg1-x544.google.com with SMTP id 23so10595810pgk.3 for ; Mon, 14 Oct 2019 11:43:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=amREymzw1c6IsU6bF35CaFvFb2Rgm1/hiMFDrclp26M=; b=Ix6j36wW1+o2swB0ZP52Dgo6L6fYWmW/cbS/RLLSTPOVPKw+d6zPVQOkKo3giEhTBJ iY573R/3Emp3mR8D9w8nxZ5dxxd9T/Njy9RduT3KwJyXUbg1y98/MZhuPq+CCkdWNyRU /dHpeWcMI/IIWuSSl1go5uVNOULi6g9Eum3Pb5ppukWSJkR+gISa+jDOsrKk5xIKbCwc DeyPTE5o1VuITLJI2D6J0XGpflv+FDtDsEBRYCHcDO1Xqi6U2JshbVNphSlUlaiQtQBV w/oBPMROeTQTMjwwVJP6x/SHW9zjXyJvzrXyVZZlB3JOvrbkcXD5whtggw6Hc7CMucXo 4eiQ== X-Gm-Message-State: APjAAAVbpbOaJX+SPqg/ydEY8IiuHQSOdxJN8CidEyY6FmUTPRd7Za4v Q8LRg1NnQ/T3wAkl/paes7c= X-Google-Smtp-Source: APXvYqycaefK5rF/bgwFS26ZwLJNFQ3sCrNf1OMFZGNcsDq/+L0n63OCH9D2loyEuczmKh42TzZDXA== X-Received: by 2002:a63:e802:: with SMTP id s2mr34339525pgh.188.1571078603482; Mon, 14 Oct 2019 11:43:23 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id c26sm16932953pfo.173.2019.10.14.11.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 11:43:22 -0700 (PDT) Date: Mon, 14 Oct 2019 11:43:20 -0700 From: Dmitry Torokhov To: Andrzej Hajda , Neil Armstrong Subject: [PATCH] drm/bridge: ti-tfp410: switch to using fwnode_gpiod_get_index() Message-ID: <20191014184320.GA161094@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailman-Approved-At: Tue, 15 Oct 2019 07:12:31 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=amREymzw1c6IsU6bF35CaFvFb2Rgm1/hiMFDrclp26M=; b=XK+t4wD79Ig4XGQ4KNdIg9ZVoBmi2QaekTMsU8vIwP32GqyVTKnznyb7UAYapnT37+ IGoq46ttsalEit36po3g3a5Lq8LjvNj6jGaacY3w0J3KRdhr9ugyweQAt8WB0PcozswI qiKwxFZ+EH4NgXEd5a1jurV2477AM8DxKkkWk6bvRE8IzqVLhgLBjSr61VOhV9BGzRBM qSURxpI4BjxrK/ralolypJPuECgp98diaQrXcAgVydZ6lu+wmEwsI3cnyczcZGd7y2ME Vq3M/J40MNlo209NJQfcVrYX8aclXLFe5QjZb8HgV0+99B8NiRSfiiTVtRHcC1OYafps 8/OQ== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jernej Skrabec , Heikki Krogerus , Jonas Karlman , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Instead of fwnode_get_named_gpiod() that I plan to hide away, let's use the new fwnode_gpiod_get_index() that mimics gpiod_get_index(), but works with arbitrary firmware node. Reviewed-by: Laurent Pinchart Signed-off-by: Dmitry Torokhov --- Andrzej, Neil, This depends on the new code that can be bound in ib-fwnode-gpiod-get-index immutable branch of Linus' Walleij tree: git pull git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git ib-fwnode-gpiod-get-index I hope that it would be possible to pull in this immutable branch and not wait until after 5.5 merge window, or, alternatively, merge through Linus Walleij's tree. Thanks! drivers/gpu/drm/bridge/ti-tfp410.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index aa3198dc9903..6f6d6d1e60ae 100644 --- a/drivers/gpu/drm/bridge/ti-tfp410.c +++ b/drivers/gpu/drm/bridge/ti-tfp410.c @@ -285,8 +285,8 @@ static int tfp410_get_connector_properties(struct tfp410 *dvi) else dvi->connector_type = DRM_MODE_CONNECTOR_DVID; - dvi->hpd = fwnode_get_named_gpiod(&connector_node->fwnode, - "hpd-gpios", 0, GPIOD_IN, "hpd"); + dvi->hpd = fwnode_gpiod_get_index(&connector_node->fwnode, + "hpd", 0, GPIOD_IN, "hpd"); if (IS_ERR(dvi->hpd)) { ret = PTR_ERR(dvi->hpd); dvi->hpd = NULL;