Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3023225pxp; Tue, 8 Mar 2022 06:26:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjbOqbI6ZzwkI2MBRU5P6DWyROZKNLLSKQkT3gy4PcUnhPzHCndqfAtO+UxSxUyN29xNqx X-Received: by 2002:a17:907:62a1:b0:6da:7952:d4d2 with SMTP id nd33-20020a17090762a100b006da7952d4d2mr13323642ejc.260.1646749614593; Tue, 08 Mar 2022 06:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646749614; cv=none; d=google.com; s=arc-20160816; b=hsYnM5U3oX5rjf1k7fNTpPiLoTgm8z+lZds2ZeyTIPu0X1FsgWai69FYDluKwNV2N8 w7RyaEL7LgZEWvovymlitENN5YTlItjudADuSt6b811OldomaPmDwhmPokmVI9u8+vjB 9iDmYANebh+sXh9PQ+apaybbi/8pS0eLReuWdOHZA8Cz6lvyCsgmwxLYuw7fIHjXOAkE zpGIkM/Z6XgeYjBKCef1YR6cr/0SGzFDyBSVMTE/Q74WdacUxkJumoICRy4M4wgIfG/b nTxp7DWibftEYVcP+r05BjqnTFwQyI26QUQ6uIDaGpp1AvqlynsM/i4ZzStZ8rA+UjFh TdKw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sHxA9Ld6Wu8Hd+SfF7WzN4p3d70QNOTgHg1o9QMZk54=; b=tY950kMz/AriaMRj+Do0KMdjy+rJ/himZ6XfZa9rUD/f6MxEIJwK5dbVp3g1UNFB4r PfyQW22l6DDiiwY61yHULOFvUE/6ikPZiMHm4ssXXSJmiL4ZwIMDnNmhXHvSMPeJEyX0 GKtx/kUSblArIjd3/qCuHY9UImBBbZpLfFgjr8t3w7we2KMcG+Dh6TXV2/W63hWRCS+F lE2bkO2sVTx4yRXL1WZa05D7+UejxmBvNlJaDjb0uqgEIa9y9QbH85qyecggZjUl6BHy gynKoiW7JWSx4bOZAeCKjNBAMRXbbAXWtsFZe4HT3/5YcYwjQ2kk5NMjVXhCt31N2rxB WhfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bo0A1Utj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho9-20020a1709070e8900b006db19d8837csi6164804ejc.871.2022.03.08.06.26.30; Tue, 08 Mar 2022 06:26:54 -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 header.i=@linaro.org header.s=google header.b=bo0A1Utj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345949AbiCHKpx (ORCPT + 99 others); Tue, 8 Mar 2022 05:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345935AbiCHKpw (ORCPT ); Tue, 8 Mar 2022 05:45:52 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 521A641330 for ; Tue, 8 Mar 2022 02:44:56 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id i66so10849454wma.5 for ; Tue, 08 Mar 2022 02:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=sHxA9Ld6Wu8Hd+SfF7WzN4p3d70QNOTgHg1o9QMZk54=; b=bo0A1UtjPuz9iqMy5rGLOoKWqhM9zUra4nPcNHqTCC5H/pqmbWlYdKOXMJ9vE1ah77 sQYwMAzxt9eJhGqspS72toUh/fLgCEsyXxTfH3wmsjnxSYaix9wHzmhIbzaOx4hDx7hb mXEdSdYvEACUutTBo3UCOsP0kgd7irD64tx/oaaW4l3IPcmzdqHai5l4b34nQBvd29vl eVeNvhcm7GDC2bYqcQjnAegW24vZ81t4EeaZJPifvDShnYH/RVTDQTImzE0Cn/510x7x aEcHgekGBna8z2v0K+B8n6G5uT2oKXwMIMdQMYqfHP20h2/r9Zz5C7jK1ZfBfGqGKN6p PV3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sHxA9Ld6Wu8Hd+SfF7WzN4p3d70QNOTgHg1o9QMZk54=; b=hY+BgFb7B8vrHZQp9shIVrQd7K2Zyl1jkmcbOBa6xXO9quP1oLhpB0n3U0gX/Jp6fi TxtEFBnMmhBjz9Xs991jDBQFbsPzgLWlRUh+fFovF4AicKP9l8JfZ8mhuJc2MAz7HLNq Jy+pdkk3ZVrgrjbUT2wznHCiGBgbOoA92H4sDW+abzhgsA7UnPEfvDLAercl0Lb03+0x Pg1dnFJ0Ribm0rmhLNrc2Dx3zSckA11UUPgcMH0xKYy2oh3eQwjD8kJ8prN1ts6OGEpj cxXZryl9MwULoLbwcnGqkpfQempWyo3LOj10p+k+faksReGEKPJOpMcBRvS/WsO5uDGb 1B0g== X-Gm-Message-State: AOAM5316TICZUQIMxl/ySBUm/x7VfCXA+Ph+TRxAEfJKSXlXFzlVRSPi 2E+eRLecdazthvqVFSQrBlrGLpxBFIggC4ca X-Received: by 2002:a7b:ce95:0:b0:386:bc81:c912 with SMTP id q21-20020a7bce95000000b00386bc81c912mr3004398wmj.4.1646736294834; Tue, 08 Mar 2022 02:44:54 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id i15-20020a05600011cf00b001edc2966dd4sm13298020wrx.47.2022.03.08.02.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 02:44:54 -0800 (PST) Date: Tue, 8 Mar 2022 10:44:52 +0000 From: Daniel Thompson To: Christophe JAILLET Cc: Lee Jones , Jingoo Han , Helge Deller , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH] backlight: backlight: Slighly simplify devm_of_find_backlight() Message-ID: <20220308104452.55arvejyjix3t4zb@maple.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 Sun, Feb 13, 2022 at 08:41:39AM +0100, Christophe JAILLET wrote: > Use devm_add_action_or_reset() instead of devm_add_action()+hand writing > what is done in the release function, should an error occur. > > This is more straightforward and saves a few lines of code. > > While at it, remove a useless test in devm_backlight_release(). 'data' is > known to be not NULL when this function is called. > > Signed-off-by: Christophe JAILLET Reviewed-by: Daniel Thompson Daniel.