Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3840525pxb; Mon, 21 Feb 2022 06:47:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJygdal/SZDETJQp33RYRWryef4ZpyQkEgf3cCARV9ooGqN2WngrmpBcb5PBNtAvs6s3PRd9 X-Received: by 2002:a17:902:694b:b0:14f:3f88:14a3 with SMTP id k11-20020a170902694b00b0014f3f8814a3mr18924521plt.150.1645454868965; Mon, 21 Feb 2022 06:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645454868; cv=none; d=google.com; s=arc-20160816; b=uFzrkcNLYMBtPAveN7NGHaCTjPRQUZvhojd1AZ2w4dncgPwb29nd2FcVr+m7Upy9bi n9AkGIzkEl7wVVeYR8jBKkgCKUYZsT8K0GnCig8W9XWJz/5yVbd4YvCQ5AovKWCiGc3T ZzJiiJLeenXZEC0cz5AKmALltlsJNMCG8hJz7doq9cBgaoICn6gWhPCfq+Fyb9QK9N+q AdcguU72NKe2zteK+uvEqRoalu0Rp/P01zkY/2hbkx42PTHtuhceQ9qKeIJPYoFXkuNl +7DUsbJIkaSU9J9qadk1BXKERndfa+QbVBQ9i6KZmWT5cSLJdiK247aoWAHW76IF7vI5 RDLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cxaM/gIV/absUw9pnd2nmdFYTqVdwN9L3+1HGmoP4AU=; b=D9jmVTh7vlUrLQg7cOGaCEkFj4u/J572Lw7eWKmZgNAbdVePIZbWiw6Lc9wa+tePcu /a8b//8MuvEjy/V/f71IwjKOJH/SYJx/3AtZTorNI/mZr6W6c2ob3a8tQfFq+8PUjMRp 6z8cT25tNxCOy5g9fMGJOx8wVPyMFjwgucPLQzSed1jTo7K+AQqlZtkTzRgnbDUktL7l O0kc0dyNpBDkrTDoE6SfDG/zZ1P9G4XAwbHTASdkipn8ZjKzmI6t0jFkSu59WtSwxIRE tyeMeXIWQlHCsuD1vS9nxVPLigXHQ3McxWptOeno1ZEED7P4oFQEofLbq+PUnUO+cpFo TRyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WB38vC51; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21si33979630plq.218.2022.02.21.06.47.33; Mon, 21 Feb 2022 06:47:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WB38vC51; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351217AbiBUMUN (ORCPT + 99 others); Mon, 21 Feb 2022 07:20:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357609AbiBUMTW (ORCPT ); Mon, 21 Feb 2022 07:19:22 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C0B24596; Mon, 21 Feb 2022 04:15:12 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AFAFF482; Mon, 21 Feb 2022 13:15:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1645445710; bh=z2gP+YiY54A7p25XmMCHjyaR7eKgMyq0FafyUCX7pNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WB38vC51fJwzH/eXxAz406pecnSxPUyMgblwAOzG/kDqRXXrNP4S7+ihdfjEHOsZv GPa8AwhfxFP9vSzD3UUJ55fgkrHJ6hFYHhWm9nWkX8Z2q4d2jiKmC8ZM/gvqEvo9km gp/NOz2PCE765RbfDqNdoe3xMwolQhWZYnKXgUEQ= Date: Mon, 21 Feb 2022 14:15:01 +0200 From: Laurent Pinchart To: Maxime Ripard Cc: =?utf-8?B?Sm9zw6kgRXhww7NzaXRv?= , kieran.bingham+renesas@ideasonboard.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: rcar-du: switch to devm_drm_of_get_bridge Message-ID: References: <20220221073757.12181-1-jose.exposito89@gmail.com> <20220221085619.bqyr2etq4xjjqa4p@houat> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220221085619.bqyr2etq4xjjqa4p@houat> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, Feb 21, 2022 at 09:56:19AM +0100, Maxime Ripard wrote: > On Mon, Feb 21, 2022 at 08:37:57AM +0100, José Expósito wrote: > > 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/rcar-du/rcar_lvds.c | 16 +++++----------- > > 1 file changed, 5 insertions(+), 11 deletions(-) > > > > diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c > > index 72a272cfc11e..99b0febc56d1 100644 > > --- a/drivers/gpu/drm/rcar-du/rcar_lvds.c > > +++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c > > @@ -712,18 +712,12 @@ static int rcar_lvds_parse_dt(struct rcar_lvds *lvds) > > { > > int ret; > > > > - ret = drm_of_find_panel_or_bridge(lvds->dev->of_node, 1, 0, > > - &lvds->panel, &lvds->next_bridge); > > I guess lvds->panel can be removed from the rcar_lvds struct as well? It's used in rcar_lvds_get_lvds_mode() though, so this patch introduces a regression. -- Regards, Laurent Pinchart