Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3341185pxp; Tue, 8 Mar 2022 12:16:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvSc7Yrg0+Q4ZnLctw8ifhYB7Qa3gXD0gtJgPiUVHmLS2U20YyG+sl58xVf5PXI/l6k+Uw X-Received: by 2002:a17:902:ca0d:b0:151:df4b:76a1 with SMTP id w13-20020a170902ca0d00b00151df4b76a1mr15025849pld.67.1646770577692; Tue, 08 Mar 2022 12:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646770577; cv=none; d=google.com; s=arc-20160816; b=JvNHpf0kvO9oIhuhSsrueK5ME9KCE53BoKkqY7HFKP7tVmUrNVRT+dxM8k1QmV3qbt xF70WZNpPPOsyl6glgwGeyng2hBTBzGDHJrVh5ZuHgyaZXj1nhZEH3pu06mV20jLYC7x Gizvlh0OjD3S3uuphzCJUNqRmOaU2jeFn1N91fGLPFdJFSAU+axZmRTOi0ZnbRqdiQln a8rOfnsOJOpORTlMMx7FFdt+Af2KaFsMmkXZSSBalKRI+6GXJ5Yi0gFKTT4JF+Jl+Nnr YGmqDGkk9QJqrCZGVj/tzHrEtn+i7pAkHPjzbXXafTtWhQuWPZVraqnTmwB/hzL2lWQ3 WNyQ== 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=oePfju4fJo1u0s2xutLmdABPmoZWfyejObfpQ2SykO4=; b=zxfnInY6dOEuJqJP0GLeF9ro0wEimHlLqGp2GWf+6zbYwuBehm8xffqqlfMqQ/U9yo UhyKk/QxDUT09ZWhCmKQc+Vpcb2X5xiAsRqhUDqcGnX+OXtbwpNWJfm4c8EDmAwq+2YP YJVUd9+CsYelVMHDa5TxzRBD5sNRSxkwPWKmT1FZQo/ijNlDCC50o4u+kbTn+Y0PMJjR DyaTs5BXj2mKNcYTb0EkA5wt70VuEZYpslo724MiVXSryZO36bPUmcnYoeVvmSQdFX57 C1urJorq8Bq4RuwzSFCLN1RCkR+cMzybLF9HtRGGk2hmamcw/6C83WYoFUXCIB5n8KWd Y2sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kvw4rYX1; 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 s9-20020a056a00178900b004f71c16d516si5672363pfg.175.2022.03.08.12.16.01; Tue, 08 Mar 2022 12:16:17 -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=Kvw4rYX1; 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 S1345968AbiCHKtp (ORCPT + 99 others); Tue, 8 Mar 2022 05:49:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239485AbiCHKtn (ORCPT ); Tue, 8 Mar 2022 05:49:43 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD8831342 for ; Tue, 8 Mar 2022 02:48:47 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id x15so27787472wru.13 for ; Tue, 08 Mar 2022 02:48:47 -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:content-transfer-encoding:in-reply-to; bh=oePfju4fJo1u0s2xutLmdABPmoZWfyejObfpQ2SykO4=; b=Kvw4rYX1l2sThJBvtCbIACTNXs1/EIDUO7KiaORWiPElVea4Aug/UYOTP+zjI/JyJK 27zrtK+BkR4xPR0hwcDn0ewK9C/ltgfxEuBhpij0ZOFUwYpQpp12I2BXFpv2fB8mjRDN UJV+7o0cMfCQTraeALyQd2k0q9tinPQA9Rk4gNS2DeucN6mxnz61dnJ0pbmqdvMi8Pmw 687pFuRIOXgKHJO++mTRgs0kINcItgyzAazm2Kp66ihf5JJYF8X9dU7hImFdFRDTphTz B8puYe7LgWXVqP+6wEsz4XGPfSyn+/pVJnxRBuLUAZEyU65MRd35xVsEVGq7A+V+9FQj zDYQ== 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:content-transfer-encoding :in-reply-to; bh=oePfju4fJo1u0s2xutLmdABPmoZWfyejObfpQ2SykO4=; b=ngjhlz0kv+WII5QftFNs9OLxlDwS2n9zaevJuxLoFYjBHV5GpbiHpQnCmhusWLY7wy o2YaMMgY5o3d2VuZWIsg+7Tcplq2jbHGTcQJVcOoqcmsNKHT7juKNBzDmnHGiVpQYEEf YBU+VE7b+Awlm3nExmlqPwql+4vCuGLZ64aACC1jiG8szSj3OdhojdEg7K5FFHhS2z3/ HiTXZFzzf/9mrZAaiOPucfWlq5XkEhSxrW0YNtyn8MF9UxL8jCZmNEflO5Ndd1eihcCx GoNsiJusa4wFqZGyqZD6rzS1qVAlL0zWHA2nZ4pfTfnv4psPa0FL1An/Z6rTSAQUgnMc 4glQ== X-Gm-Message-State: AOAM532K7HI8GWCnXbowWxHH+HKat+F+5KaviTBOVjGJhNV+/okLd2P4 l9yLTl4+Dva6HfvKcWSv7lb+/A== X-Received: by 2002:adf:80d0:0:b0:1dc:90a8:4a1d with SMTP id 74-20020adf80d0000000b001dc90a84a1dmr11506035wrl.180.1646736525957; Tue, 08 Mar 2022 02:48:45 -0800 (PST) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id r12-20020a05600c2c4c00b003816932de9csm1823380wmg.24.2022.03.08.02.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 02:48:45 -0800 (PST) Date: Tue, 8 Mar 2022 10:48:43 +0000 From: Lee Jones To: Christophe JAILLET Cc: Daniel Thompson , 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: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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=unavailable 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, 13 Feb 2022, 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 > --- > drivers/video/backlight/backlight.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog