Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3113741pxm; Mon, 28 Feb 2022 12:17:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxet5G8UTI5uvDzO35us/Zxzk9K6uFTgzkoXLSlORW+CcXBtyDAFqSENEQOUtLOjM1jYGA X-Received: by 2002:a17:902:bb02:b0:151:56a8:f80b with SMTP id im2-20020a170902bb0200b0015156a8f80bmr10593117plb.30.1646079474527; Mon, 28 Feb 2022 12:17:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079474; cv=none; d=google.com; s=arc-20160816; b=UO/XsI2saL5LOI6tQpodyw6BrHtxokQjsRBC8gSfB7tq5N6PJpqfWLxtOXNUtuIEOB njeya/atBVSzG3N1Kn+6zUERkL+9SLls2jMh7GtdwSi6daw7K4NESfaQs1aWtnjKqqO1 1OAcGJf7+fNeCu2T8GQ3KZ2xcxjcbUgtFNgNlHW3ii0PIcoOeTr1VNO3RQ/gg4o5GJ4f 92tsTqSPofI6qo25rKv4JG3qSYWTyK7Jtu9Fj8jSYenvFC6L1Ug336B0ofxwxurjyaRF VYj0OyBz3ElfgGgUNhguE9kHfmNQ364Xy4vQ54mxY9+D/VY5UbkdcIDXZXtTzIqY4CJx wZXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=80IauG/d1J+24O+js6o66KmrN0KsXMCLre6trIg99LQ=; b=Uo201tooZq84/xkAnWBh1NPDMf0c4/SX7UYHaJ8VmkpmQIV3JpyuPMuMYnhULZUpUs wG4GIVkUlssd62D8s7alYNpSkVO6I3C7t2flfsYk1bUOjxUyQDkRoQt6s7f7s9xlelFV 7iDs3ybQnieWr+xnvYChspKsTRT1NPxRqb5Njhi0sSGLWcC11cT/lNKE9OeoxG8K76mG fEL4QmmWXBB7NfG7HSQBIE4rbbyAPxOf+Kz0PX+vNzWJMa07cJ3zyCnRQQabUsvADHXZ Hygbyr6ENDGqF7FsjBWHon8g6VyyCy7hN/Br8YZI96sO+r9zeV1HHpJtrZ0kQBdLrG2N 1gYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iMrbNpsj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c4-20020a6566c4000000b003752313408asi9741122pgw.351.2022.02.28.12.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:17:54 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iMrbNpsj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D2F86E357; Mon, 28 Feb 2022 11:39:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240516AbiB1Skc (ORCPT + 99 others); Mon, 28 Feb 2022 13:40:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240819AbiB1SkQ (ORCPT ); Mon, 28 Feb 2022 13:40:16 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B03E9B1A83 for ; Mon, 28 Feb 2022 10:31:40 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id v21so16846845wrv.5 for ; Mon, 28 Feb 2022 10:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=80IauG/d1J+24O+js6o66KmrN0KsXMCLre6trIg99LQ=; b=iMrbNpsj+1cEzLoigb874QD2f9x0Svo32wxz2+LBSGHl8vwNV4yGlBiP1HGdQV3PoX NPIKH4eQeFuWAL9MxTvrJKJneoatmzeWN1WDnolpHqwf0/yhsSaxaAp74JvBOgBXcoQ7 1IndfORgIfOq46dOCBD19cAY2y5JKz4/iN1u2qCa4ViyvDy6APu1HmZ8aqbx2YRuAywQ L1nQvDE9IqctLNIv8YIqQtWJIgIVA5EY8dP3em70i96qa3GOtsS96UCC7WZStxyRv6au wBV2IgmC+M7ED202x7xe7+iyYG6zcEAeyP1uROqu5yC3yssHk793OaI2207EGEpuZuW3 ehJA== 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; bh=80IauG/d1J+24O+js6o66KmrN0KsXMCLre6trIg99LQ=; b=TR+gPXiRDMOeugRFen+B8yy3T5piE8S5Y1o7LgSFje6SEduRa3/AiXyZlZNkPXNs/9 jHm/O/rPzWWfA8G89ouCjIDwlhTP1D9RZXVJqYoCjVkUN+tECHTSxWwbDz5aOWj19TRA rP1YNX26tUJhxZpDTNmqxhAIH8ePWDvpL4WuAzeYmNgYvwUrchc8S61be33jS69+8nXO NnqYSTb4moA0aWxfZG9toMZscvcJ38dHgi6Faw8fQwqignLJqS+r2yZrKWnfmTHzIkVb F8oFC+QF6mGpkIYEdAyEHpdWYIKY9iQaHxJfotjK2uGIeCkMUeIkeB01cXEBhYHW/Bno ms9w== X-Gm-Message-State: AOAM5311xvD9eDOPj3rIM3to1l8z1WfI3RcV+k7zOMwZgtDNIJYWkqnJ yDBhJj618YtFbpmruNqJzYg= X-Received: by 2002:a5d:59a6:0:b0:1f0:150:4bad with SMTP id p6-20020a5d59a6000000b001f001504badmr445442wrr.581.1646073099334; Mon, 28 Feb 2022 10:31:39 -0800 (PST) Received: from localhost.localdomain ([94.73.33.246]) by smtp.gmail.com with ESMTPSA id v2-20020adf8b42000000b001edc38024c9sm12670725wra.65.2022.02.28.10.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 10:31:39 -0800 (PST) From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= To: andrzej.hajda@intel.com Cc: narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, matthias.bgg@gmail.com, maxime@cerno.tech, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Subject: [PATCH] drm/bridge: parade-ps8640: switch to devm_drm_of_get_bridge Date: Mon, 28 Feb 2022 19:31:31 +0100 Message-Id: <20220228183131.23494-1-jose.exposito89@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function "drm_of_find_panel_or_bridge" has been deprecated in favor of "devm_drm_of_get_bridge". Switch to the new function and reduce boilerplate. Signed-off-by: José Expósito --- drivers/gpu/drm/bridge/parade-ps8640.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c index 818704bf5e86..1c2c4dd50ce0 100644 --- a/drivers/gpu/drm/bridge/parade-ps8640.c +++ b/drivers/gpu/drm/bridge/parade-ps8640.c @@ -566,7 +566,6 @@ static int ps8640_probe(struct i2c_client *client) struct device *dev = &client->dev; struct device_node *np = dev->of_node; struct ps8640 *ps_bridge; - struct drm_panel *panel; int ret; u32 i; @@ -651,13 +650,7 @@ static int ps8640_probe(struct i2c_client *client) devm_of_dp_aux_populate_ep_devices(&ps_bridge->aux); /* port@1 is ps8640 output port */ - ret = drm_of_find_panel_or_bridge(np, 1, 0, &panel, NULL); - if (ret < 0) - return ret; - if (!panel) - return -ENODEV; - - ps_bridge->panel_bridge = devm_drm_panel_bridge_add(dev, panel); + ps_bridge->panel_bridge = devm_drm_of_get_bridge(dev, np, 1, 0); if (IS_ERR(ps_bridge->panel_bridge)) return PTR_ERR(ps_bridge->panel_bridge); -- 2.25.1