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: 1862 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5C8243F067 for ; Tue, 8 Mar 2022 09:27:40 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id f18-20020a623812000000b004f6a259bbf4sf9040271pfa.7 for ; Tue, 08 Mar 2022 00:27:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646728059; cv=pass; d=google.com; s=arc-20160816; b=tq98vU/Ji9c6uUs7yrR85G3mg826d/5jpQGIETEMzlmdgIZsa0o5N97CUoXvSEnIDF ii1InNq/6RB5lE9xbBTP4VXzn5u+EC2HzZbMJYUpDgckhWmoN34nWblDgjnyhoZrk2qm BnnH6ZrPPIJgDyY3j6/YcwOfNTGsTzFu7HpIWqKy2r+GR0+kpe0F0/llouvA9tcjDhPi 3otQN2bQBjVpFX5j66jD1ek8TrG4YH6a5HnfffvmXp6f9aK8oshrR8wJb/HuUQLx1CQw 0aW02E5vo8JVJo6nsViI8KocMrs+o4Om2cIiz0NvZmKVYr89tg0KMareY5kJ5maDYOPm 7RoQ== 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=9IZ03zP82VjAQpnT8yuuZTHNf7nwgijZORBNyfrldJQ=; b=J5se/NjyULsLcY481wrB7ld5/6sPl1UU6YQ7WM2ezz3JwmniDjVJEKtMDJTMeg4rQ7 5Hm1GQmhvtXHxAfyaIfvaNw1EnO5Z70SM6n4NnSlhU6adlbQwE7bEGXgw2VoSZ09XVcA e62J5keaZ/ALKtKYlJdPcLtSw1mN8psFdWLmwbbElCeWLQgmDy2V13XV3W618s0NFMod +zl4Y0+FK5T9fLAvdyGkgfOnUkbq7tVhAu5TsCd3WvveR7Yyv6oo+OyWslHThZDB3BfO U45zOaqvgsMqbCApY5CN5JWqLhZuCGXfuBcUQMjx069QVxEjQZqYuxDrXIebQQN2H0KV dWOw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CjTta5AZ; 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=9IZ03zP82VjAQpnT8yuuZTHNf7nwgijZORBNyfrldJQ=; b=mRKv5GnmNW4+dOFijcdO0bWSPXDdiUW8kyZ1lcYB9iYf+Gp0V8vxy2yDG4n/Ab7m6g 1KKITA94M7nkKjnOgnuOsj09aNTIWZkqWU2DR3NZIR60jRmsIJQjHttVlA3HaWgnB1YW b0NxqcvX5QHcKb/fRzmjOmFimbl5tH1Ju1Ktk= 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=9IZ03zP82VjAQpnT8yuuZTHNf7nwgijZORBNyfrldJQ=; b=2LEahYKzvK6E/Z41xmK6eKDId+2g6n992K4xaGpcfnSiVXmlEvFY0jvUKK6051gmKa pDjzXsIiKHWnzuGNpT2rE4A5eC/kOdsWotTvx6Jstpw248jo1L/hHX2PMNoOKFq3jhez 2ub0OMMyhTUdHfEVLIgqGHVaokWdJR/amjDlLM2bmhrdBML4s44eYUCphYoK6D/dRXQL c1ezDs/kO3SbIgIQZC+Vzim8VIux+dv/WkGG9kySjVCowxdngWN0gPH/0yptXXN4SWFB 62nVRDs9/nJwRVd8nAFOSmt0m7ZhMfTnc/1olZXB2ugyqlSaTrilYwsj4/erggobUyT0 WUAg== X-Gm-Message-State: AOAM531MjocEQRLpZl8KB1BTsFWA9ztCC10KOO8vLovlDBh76tqCne4B 4wPG4YZab7ywerDznMlnbIwGdk0o X-Google-Smtp-Source: ABdhPJxYqMfIT66Gzvg/ORs42w0o/3lYuuA1d0AcjbRfZPApKsBA80yZxUk/OB5pyPesRtI1y8XFWQ== X-Received: by 2002:a17:90b:3807:b0:1bf:6c8e:f9b7 with SMTP id mq7-20020a17090b380700b001bf6c8ef9b7mr3472109pjb.16.1646728059136; Tue, 08 Mar 2022 00:27:39 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:54c1:0:b0:4e0:1a99:c74b with SMTP id i184-20020a6254c1000000b004e01a99c74bls7242743pfb.3.gmail; Tue, 08 Mar 2022 00:27:38 -0800 (PST) X-Received: by 2002:a63:191e:0:b0:37f:f33c:2d43 with SMTP id z30-20020a63191e000000b0037ff33c2d43mr12991634pgl.43.1646728058362; Tue, 08 Mar 2022 00:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646728058; cv=none; d=google.com; s=arc-20160816; b=InQeH8K/jRYqeJMEEEb5UxEJ2h7wnP7x9TFkhMvW1utfNk3J+dJp+mYcfNUdcHggmg A0By85+K4wZ3r/C0PBaZxOzq6XHUBfXnsHeHbph4fAYItmZ3D6VXino3krQ5IHV5mY/u EfOP7u1KK4TmP3bNbyCTrcyTQ34uvPdcn+LVOebtI0cyhZc+A8P4e3236RkeRWeoKSg0 FX+TRasOJSr3monUOqBZ1YYbZsIPuEHAFQRJQMjDL70FTlwjdiT/S9k05q0nksaEmkh6 cNwRT9kGIckI559irIrDIPi9Z0SjnLo9TOXUvdcFClV9ifGog23jtWv1+2Uk7MTJsXxi Ssuw== 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=f8mtBMXSGDva1ijP2ZoghJWbGJ+rfSRfbspkHLYkOMU=; b=jHUNV5Y+mdgusk6OhqRHfkLrLSCNHBqJGqDa+iTJV85s+DnJgZuQLx1frL5EekJPSB fuQ5nGg12pEbZWCmi5n0FpzBVlo7OQUCRjwjNz5JWHWOzfx/1+h2/LlRVV1LhWwYtIZn wPjvLdhvO2pWXomqE5vfg+xKwWTvQoLb+KZAkvNtAA3r1YugGv03OJStInOavat4DeIw +87zIAKnJqPeaY3MGsIoP9SixTlt0BWtbg0z+aD4ZfzGzsqXLglIQ5L6m0iKTlRvin9/ jH/tSAcZcaSqDdrfZ/MzZryDkjcNAtBEQj+PukkwpubbEObFKLXdUvZtIgv+5fma7XyW jtdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CjTta5AZ; 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 h22-20020a633856000000b00373d9816d82sor1872682pgn.21.2022.03.08.00.27.38 for (Google Transport Security); Tue, 08 Mar 2022 00:27:38 -0800 (PST) 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: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 Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= 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 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=CjTta5AZ; 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 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