From patchwork Fri Dec 10 17:48:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1807 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1C0BC3F075 for ; Fri, 10 Dec 2021 18:49:07 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id l10-20020a17090a4d4a00b001a6f817f57esf6380564pjh.3 for ; Fri, 10 Dec 2021 09:49:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639158545; cv=pass; d=google.com; s=arc-20160816; b=QH3r+43Fj70rjQORdszeLqMKiKvYym/LDNDlBk/n20GfJB8jPrvRSphivR/CmBqlyl 91JAFwsDID9xrzt2rpkkUFbCtCKItX64hNKPylkPOAWdNbJQ9F9aPkGO/Bcl4XVy5bEP HBXD1v2NwXupJIh1T7gFIG0won9UiTU0d2Y3elnM+ur7VzRgWeZDc8elJjJP8Exws1zE GnO409IWMgtQdKOE9JNLNU/+I3tsePnep051ydBnqmx4pfJF6aVzXhV7Wb4fmGjA4TEd AyIREgySTqIl2S4OhUK1+I578XnzePWdLy8++CVany2gWJLyFiMmNlK4i0cXOVEcKd1C +aXw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jmw4/X2oQJZxSXrb+UyL8zWawJJrdv39JHXpGSoahzE=; b=AmHzgT1MuPF87OpX2capxCwM9znyNErCiDlsmIoGfszrmlyiHukL3RXkIfMf9RY77R o2PTwVbRrPUeu72ufz+cfWgWlOZ8CkoeYHXIxw1e0/OMYlmgPwmki4T0urszPfTtLuFG SlC638BS7Oh0RwGNK/JZZQJ6g8UdrhzJfS30SJU3e61oassL71Iy984RDxTR0pFwB0vR lYMC8NQ6ApJx1IoziMzEYvOyl3JU2ziFbvfImTunFq3FNWa8u73DdnGSxOfNWh2+HD+R eZQweAlZbPrlQqbFEi9vZm6LWl8r+iGh19XTNVy7ruPIeS7yr02aLF9hiYx1LhJ3/yuh 9gvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=efryh0xR; 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: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=jmw4/X2oQJZxSXrb+UyL8zWawJJrdv39JHXpGSoahzE=; b=jqwf2+rX8LsM/MDZfsnUYICeyFVLzpiHD8HZH90CU++AeUpOyhXps4++qZtXEqK2/g Oik2yaN1LVqAAnWx0fR161yQ/GnbZYNUBr/5Mi+xrcnMM2T0iXyryhyq9zYZwQcYiXIp lkCU9zGdVetC27YP0blviTuzID3Kb/L2C6+Gs= 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: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=jmw4/X2oQJZxSXrb+UyL8zWawJJrdv39JHXpGSoahzE=; b=N/n/+n95rMYBoAyhu9S7eUh8QoZGkvIm0Q5qGgykv4H+jqFC8hEsV6SJ4kN7OSFh+X nxmO0IfafuzO3zEGRh0OfDIbSpENFeIaAb5JVbvttNI4GJujUNXmDgzTFuVq+YtWFchc dKK/c6zLh5s7ajGjLHufDEImZtRrW/xv/GBgb9wkvKUmGEhnVg0hpfZrPjKfwwch/lgp X3Vvt/ZQnDlrOxvj+BU40XjJTh3p8PtFgvdQxSD41hGjHC+OlTb4wfhE4jjrkr+sAhy7 j+Jtwg7dCZ30wuDta9z2ISN/JSRdKUWT9DhkSiPB1kwG8Ok4qaO1ej9ZMxqanTOLmKPw QtzQ== X-Gm-Message-State: AOAM532bQfI9qxUA9RFuJ3vMg2rC4J4Ub/5lY8OgdbNui8PMFDIRGNYb LA4duQrAfi9knumfSLJdk4N7gB4b X-Google-Smtp-Source: ABdhPJwzUuGiN2+SGb28Ppqu/+9qL4/qmM5/rQnvZqEf8m9j2ofycS2mzs0hrdgcMBz6SpG/CPMXTA== X-Received: by 2002:a17:902:714f:b0:142:892d:a46 with SMTP id u15-20020a170902714f00b00142892d0a46mr76244172plm.39.1639158544903; Fri, 10 Dec 2021 09:49:04 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:c40d:: with SMTP id k13ls5210779plk.5.gmail; Fri, 10 Dec 2021 09:49:04 -0800 (PST) X-Received: by 2002:a17:902:e804:b0:142:1c0b:c2a6 with SMTP id u4-20020a170902e80400b001421c0bc2a6mr75707384plg.23.1639158544241; Fri, 10 Dec 2021 09:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639158544; cv=none; d=google.com; s=arc-20160816; b=yy5q3PHS4+g6lQqtYLS42uwDwJS2G024nj9iKCKirj1chyfoYUw9Oxqzc3bSnmrIFC N7HFoQ3SxuWTZAoxp0TfIVMQbp/1EW5C3Nk+H8T6xyok1xE98BEZT4P+j4j3yrUzf9wP h8V/cT30HbVxG+2zxiQrc4FiwvCAt4lidbcNvObtmUv8YG/s8KPIP5sTuCsBEmU6ugy7 K5pWe49FyU1pM7UKfSuVgUoSK3sLHnODPerm57P/0wrrc62tPGIqAJ4V42ULq+XUn1Us KRVZZiMaLdfskKYnMj6z7RMHWT0Hj1Y/K36NMzswHYBrh60rLsM+LWqr+2TTRDVHHMCW g61A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=7rizF6SQspxzLCdP3CjSaNCfkk6zM5V4SVHSi6B5RlY=; b=iaOE0zRXTEAf3xm0Ibhl0F6q0pHgqfpGm6NAmS+Rw24Zb/66AXv1UvOJNMkn1H/PuN 6aFnZdTVkmI8vQwTGLiThyQqGe1MIK4HhhHGLRKT8LF1AK42/7SOoUF9GuF+H7n5MOtu y9xJCGgNRi0A2N9M11E7LKLuWAWuyhX+u4CVhhiPpwLI1r95ijhjaGxwGEteyhaUftqL dOzKRfQ9gqAsWVHlk5L2d/ZKLk4+yE5iC6+dd+VhmVLpDYYj/m7Ejq22Q1oHmyt9n9FG CVnK2Bxn5YYZtfiHYV7a34onLQgHYSB1tuhBrcmKrB78Deawu3il3HmQ+zit45dcwbTp yKng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=efryh0xR; 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 il10sor2997818pjb.28.2021.12.10.09.49.02 for (Google Transport Security); Fri, 10 Dec 2021 09:49:02 -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:a17:90a:e60a:: with SMTP id j10mr25948578pjy.169.1639158542156; Fri, 10 Dec 2021 09:49:02 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:28d6:2bae:633e:b110]) by smtp.gmail.com with ESMTPSA id w1sm4039644pfg.11.2021.12.10.09.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 09:49:01 -0800 (PST) From: Jagan Teki To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Yannick Fertre , Maxime Ripard , Sam Ravnborg , Michael Nazzareno Trimarchi Cc: dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-amarula@amarulasolutions.com, Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= Subject: [PATCH 1/3] drm: bridge: nwl-dsi: Drop panel_bridge from nwl_dsi Date: Fri, 10 Dec 2021 23:18:17 +0530 Message-Id: <20211210174819.2250178-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 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=efryh0xR; 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: , panel_bridge pointer never used anywhere except the one it looked up at nwl_dsi_bridge_attach. Drop it from the nwl_dsi structure. Cc: Guido Günther Signed-off-by: Jagan Teki Reviewed-by: Guido Günther --- drivers/gpu/drm/bridge/nwl-dsi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index a7389a0facfb..6becdcdc99fe 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -65,7 +65,6 @@ struct nwl_dsi_transfer { struct nwl_dsi { struct drm_bridge bridge; struct mipi_dsi_host dsi_host; - struct drm_bridge *panel_bridge; struct device *dev; struct phy *phy; union phy_configure_opts phy_cfg; @@ -924,13 +923,11 @@ static int nwl_dsi_bridge_attach(struct drm_bridge *bridge, if (IS_ERR(panel_bridge)) return PTR_ERR(panel_bridge); } - dsi->panel_bridge = panel_bridge; - if (!dsi->panel_bridge) + if (!panel_bridge) return -EPROBE_DEFER; - return drm_bridge_attach(bridge->encoder, dsi->panel_bridge, bridge, - flags); + return drm_bridge_attach(bridge->encoder, panel_bridge, bridge, flags); } static void nwl_dsi_bridge_detach(struct drm_bridge *bridge)