From patchwork Thu Mar 31 15:45:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1895 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 232C43F0D7 for ; Thu, 31 Mar 2022 17:45:28 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id y26-20020aa793da000000b004fb7c6f5d10sf5929326pff.1 for ; Thu, 31 Mar 2022 08:45:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648741527; cv=pass; d=google.com; s=arc-20160816; b=qK/zdRZRTZGhRtwJZ3k4bkbn14aztp2VdHKnUaW6qKd+Im8tKx/3pW2RgWsrRXjnL0 CR1kP4jmuGulE1sfy0gniFQcNnzCVBIFDVTbO0UDi8iRq3H9jSj9nWshhoAgln5+c0dx Nty/UE4FPBZZYXu7WVupy8N0DARarEw9OmfExZ7rowxBXJxfmGZh/vToZ6jYtYuKJWJK CUB5719KypgG04pjFgLqLWi9pPn6oKHZcbnCIfyqTTx93t1D0W/TVSr50ZFboIbFTyP5 D3Mn+lHzJ9krzj4GBoKCvhXKAYj6OoBwF0aAijgQjTZ80ausnUJS1/rKJPKnp0is5rp/ 0aHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sTxeUVemDQoEBlqktiyZG81+l07S/XaqgBeh8r20w+g=; b=OjnU1wdaakY4sYyMIhj8OukFreExFDtifPt6DGYC9mZwr3cJ/srT7tI8C7yr7ejr7s Ox2DxaTP8rJO1RyG6Bnb3R7pOelKhqdrSpvvfaTr/b8etpsYNn1HYeGal6NVO0F0zG/k TVSQXG8XNLqDk4EAE18uAnDPhIt6i1AQN6kPxsJu2MXBRaYx2GXCiExyFh2jh2/NuM/z VVyDgcCyfDydjdJFZZ+T9eyvleNlwEI45p3YglBei9CU+mSxpJfnF7heCYwC0eQ2y/wD SZK6+/KN4JL6sCpVxBrSQFMzlO1f2HhND3aSDMteOjBnH86+tUyuj7LXwlO3WMKOQ23z htTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kLrfcWHX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=sTxeUVemDQoEBlqktiyZG81+l07S/XaqgBeh8r20w+g=; b=SPykf9hd7yqFu837gdgHanP2B2WxYAtJQV95W5/37TA61XaWLSCV0sYMjO27n8HGtk 7TXCEaWZTKWXuC9l7026AjRseiJAFMOnJUVeVhZPQ+m0/JLFDzNKpIFfvqRiTHjvahFn 7abpLusHVry+H3yFg+1ecdFe2er/VlT+XfBPA= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=sTxeUVemDQoEBlqktiyZG81+l07S/XaqgBeh8r20w+g=; b=pJWf61TQt9SKjUWDIo/ovCz2ZXkARbaA/woFBFycuufEiiGZvplD+D9kpfage0LPSz bMNGRRRc47hyWuPgFX3PrvAybuzellLKVee7u4pudB1HewO1TDh2OsYxz0YgehkCOYwv fEJ/PJ/LW598fOMr3Btr3Pq69YDd/F9rcKRadLcotdQqZORYERos40wDO87qpXUqX51+ +2bOLq4qFAObb/4pbF7oVyyi9KQBlVWpbBVSl1DHxvn6shruSvarvxg5pwUBfmbQ6UGz CMvdQXN1/zIPSQsAkFGc66ZDeG4eqs8PpYykSRocRtXkLUj3aYae2vpUTiaQ7fDNQDbs S8Vg== X-Gm-Message-State: AOAM530EG24XoA+yzCjs5xWUGnfulaCc8s66und9cmyp1X3uR4gVB07h XRHvk3oVenxVb6RK+RbFViL7iOtd X-Google-Smtp-Source: ABdhPJxkOt6xYZn6RDfNU5QGgYOWsr1+lItJq4un2CO30FT7UhLmjIeTsGvsV6gZkVNk894F/5hs/Q== X-Received: by 2002:a17:90b:30ca:b0:1c9:a577:5e8c with SMTP id hi10-20020a17090b30ca00b001c9a5775e8cmr6895449pjb.227.1648741526824; Thu, 31 Mar 2022 08:45:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:fd0e:0:b0:380:5398:a9ad with SMTP id d14-20020a63fd0e000000b003805398a9adls2390401pgh.7.gmail; Thu, 31 Mar 2022 08:45:24 -0700 (PDT) X-Received: by 2002:a63:5926:0:b0:398:b425:b527 with SMTP id n38-20020a635926000000b00398b425b527mr5988007pgb.396.1648741524458; Thu, 31 Mar 2022 08:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648741524; cv=none; d=google.com; s=arc-20160816; b=YGOFfw5M6AFfeJX7tko/dj6FJtJwABkAls9kJ/6PBQ79mSYlO1Hs+gm5HWFPWHA6K0 X9TLvqrvmYGl8JIhXfNKCMOEyKfpWl+hTKef9HIz7RVLMpEKOPNUDoC8OEKYdjj45eOZ EL22bbkjulj86LybE3v6btKiy288IYxSWlFzGRCQpy+xp8cEO9JZHrcKvvaNCYzeA0bE OcUFObguYOHi2qzN4sZxZcp/i3DEGD4KISl70xEoqBP17oiXh8zu3YYLnEwdx+J+x7JB xo4MczlPTQr7qbYxSFtZbas1/mqq1FjT+epZJKwDJCjgukw0M75vnjfANpxKcTHNnw10 Z43Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=WMNo4jcJRuN6F5QK69tzr2gZgbW3m/XsCs0EXVccMtM=; b=c4OKrp02tozEj3RgDfKNkbZ82hytsSal172Cd3bJNeg+zMOC+skAx+AVtCgnHNmgRT vr6yfIT4NZBrUQMeY0EegSzr4SjgJGiqvPikWNXsT4NB1EDyqmihNQaRXA9ZX1tCdk54 sP+pjWhBgoRO1i6aweJxbWzhZTLAvXvSdMjiGUSKy1YphBAGd6PUf/7pNFe7JRfMgtJP bDREPeyaKk69sPSCnqjxJiCOURxz8Jm3B1apsSOk3OUQsvaStfS6XgwKrOS5mN97zhBv ES8I1IP2Vk34Mv4B4T3Qg6BMe6uCp8CfIiyaFbuYB6SmPMZemhfF7GRHfYI0NZ9h1dUn uBYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kLrfcWHX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ct23-20020a056a000f9700b004fa9090017bsor10204614pfb.87.2022.03.31.08.45.24 for (Google Transport Security); Thu, 31 Mar 2022 08:45:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6a00:1903:b0:4fa:fa9e:42e6 with SMTP id y3-20020a056a00190300b004fafa9e42e6mr6210035pfi.1.1648741524152; Thu, 31 Mar 2022 08:45:24 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id g1-20020a17090adac100b001c67cedd84esm10205684pjx.42.2022.03.31.08.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 08:45:23 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart Cc: Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= Subject: [PATCH v4 2/5] drm: bridge: nwl-dsi: Switch to devm_drm_of_get_bridge Date: Thu, 31 Mar 2022 21:15:00 +0530 Message-Id: <20220331154503.66054-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220331154503.66054-1-jagan@amarulasolutions.com> References: <20220331154503.66054-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kLrfcWHX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 v4: - none 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 e34fb09b90b9..a549da5b3f93 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