From patchwork Tue Mar 8 08:27:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12773270 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id CC99AC433FE for ; Tue, 8 Mar 2022 08:27:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E228810ED27; Tue, 8 Mar 2022 08:27:39 +0000 (UTC) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76B2B10ED27 for ; Tue, 8 Mar 2022 08:27:38 +0000 (UTC) Received: by mail-pf1-x42d.google.com with SMTP id d187so16702869pfa.10 for ; Tue, 08 Mar 2022 00:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f8mtBMXSGDva1ijP2ZoghJWbGJ+rfSRfbspkHLYkOMU=; b=CjTta5AZuLUxV4cZjSf9I/9okho/BogePPKRs/C4Y0V52NlAKOEkZ72FsIpb5Zjc6e 3iEErN/z+93/QA2ElWcvVeFaifI3s65yQcgQ7w39bYaCqctVDgUnZJbrSJQlH6AMMDbf Kp3ak+TjeMfF2+GH4EP9pKcqOZPDZpE3OS5RQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f8mtBMXSGDva1ijP2ZoghJWbGJ+rfSRfbspkHLYkOMU=; b=jeR2hmBOaHUPXrqC4iITJj9cE7ihCwBvDzyvO35fa4HYrxjwn1wAY4w+cM0IjkpEiZ VH2sd9/h8yNE5+7fYSsr+pBaDH23QviC/WjnLgKEgz6Tn+bFS8yU2TAaD/MwPaT698x9 muOK63iKwo8I1rrGJ4LB5JQnFY2x8zKtLjxNhGL25+n2W/NwrWkps7f1uosGUA7gkqms n9ij7LOPyNdbzb5YmPpV/kAxPzU62RQRhmw/JFqjK9JgXT3itFgjD7P4NATX6mtEDetU pnIdADqmzD8kLAN0OZmEZBjurghqPk/4EKDkC0wt1yOlaJj28XHmNL9M6/7U8vUfVQxo 6oHA== X-Gm-Message-State: AOAM530xanbHM+WvcChjGScwwg3ODjaIP9XIlsRCeNtmKkX07WeHkbo0 m+O4BtnafxaUTcaLEcMu2pbIH38KVFXiJbLw X-Google-Smtp-Source: ABdhPJwboMskD8ooRmR/LYM8lWfwYSb8rz3O6RcxQS9j6aaOP3aYXBnUBrhW8sXeMANZqTptvZErmA== X-Received: by 2002:a63:85c3:0:b0:380:3079:c5b3 with SMTP id u186-20020a6385c3000000b003803079c5b3mr8916077pgd.274.1646728058059; Tue, 08 Mar 2022 00:27:38 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:c770:6f0b:21a:8de4]) by smtp.gmail.com with ESMTPSA id r1-20020a17090a560100b001bf72b5af97sm2000671pjf.13.2022.03.08.00.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 00:27:37 -0800 (PST) From: Jagan Teki To: Andrzej Hajda , Neil Armstrong , Robert Foss , Sam Ravnborg Subject: [PATCH v3 2/8] drm: bridge: nwl-dsi: Switch to devm_drm_of_get_bridge Date: Tue, 8 Mar 2022 13:57:20 +0530 Message-Id: <20220308082726.77482-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220308082726.77482-1-jagan@amarulasolutions.com> References: <20220308082726.77482-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Guido_G=C3=BCnther?= , linux-amarula@amarulasolutions.com, Jagan Teki , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" devm_drm_of_get_bridge is capable of looking up the downstream bridge and panel and trying to add a panel bridge if the panel is found. Replace explicit finding calls with devm_drm_of_get_bridge. Reviewed-by: Guido Günther Signed-off-by: Jagan Teki --- Changes for v3: - drop panel.h - collect Guido r-b Changes for v2: - split the patch drivers/gpu/drm/bridge/nwl-dsi.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index 30aacd939dc3..88d05a33f658 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include