Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp925983rwp; Thu, 13 Jul 2023 03:29:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHjOtxdfvllbklEHYU9z1ZLJZTdxO6KXtQnLauGsA1ZP0f0yUBUu1gjNTx6JILIOMFUK705 X-Received: by 2002:a05:6a00:1798:b0:67a:39c4:5bb5 with SMTP id s24-20020a056a00179800b0067a39c45bb5mr1054357pfg.6.1689244172594; Thu, 13 Jul 2023 03:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689244172; cv=none; d=google.com; s=arc-20160816; b=nBO6g37GndVRWuzM/ktAA4JHFUi4rQbtbjXIWYByVSZIsMg73Zs3ikAtpIhRK9a+gj RJ8bYw1vfyqc7OLXwr1BRFTQZVibVQGT8MeTWCMio82+91Ulfk5+zcjyjPU+kkUClY8u SskinLIhMl2gHh1sDo35Svq06u8n6j5AHHM1aTI9lSMXP/XuWsY8oA5uEQBYtFMf4PAf hD/fBgHQBjbZjlDugd8W6AZ5pNtSWE4w8EKG9Vg8iDZ1/cyEnHqegDeSvcml9N3mfvUF 3vzHuptyFxS5Q0vPJ8Gr8C/HYeAShErE+87jHS5Zbu3J9sUkuGfDcT8xr8U7X29kBOuT 3qmA== 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=yKkPL6ouGRPP23D1rpqRWRKr6ZRELtDWW+4rZPjhkhg=; fh=JdSm66bMHSNDDnxCNdyHQMsruH+9vojPZgBZccqlfmI=; b=fHOPQpLBJ0L3wVbQlDg+gGmveH5hXjgk0MM8u8fPTa91FhBz7fBupEXQzx2k9bnaWC je3XXHjHj+4dN6WyPMsupdtxr4RwL18Hgywg8+6h1QwTUjeLvGRvgUnXQYqIdbzfdIOE 6HbJcSzqQBLTtKDpg0Al4YHiF5OtIqxByhPhYVXWfrmOSC1p7VlEvwNwGf7oOsTPDj3q znJs9fw8kudaPE9ltGz7W5hTDFSUoHGAH//ovwyVG/tnACE7Zsu63BgdEDmgWs7sfY1D palXy+ME/f2RvW/iQBGVtntuVc+W08whLixzr5Nl/m4z58xVVqsHV0LzKXJ5/zgUeuRc tN1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vHpS82kO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id br7-20020a056a00440700b0068265f40634si4726918pfb.400.2023.07.13.03.29.21; Thu, 13 Jul 2023 03:29:32 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=vHpS82kO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232331AbjGMKDT (ORCPT + 99 others); Thu, 13 Jul 2023 06:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234545AbjGMKDG (ORCPT ); Thu, 13 Jul 2023 06:03:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2A7D2D58; Thu, 13 Jul 2023 03:02:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E9C4D619DD; Thu, 13 Jul 2023 10:02:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BA63C433C8; Thu, 13 Jul 2023 10:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689242567; bh=ObO6lF804ZW//+RWdhD3dXH0O8MP2/EpWAQUtvd2CfE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vHpS82kOZaSf3CEjUEAzhOE0C9ccmEA5KmYiN2LNrdNpHCkiNfx6utk8dZjdfLCUe p6G3fy2GRtmpRu5jkeMnGSvkzGRFV1Bx1ps1hcQbcwbnH4UnCdWd+uJ/JhvCjqgqql +gAjLLg67ZPnY2EH0ypSkWqkAzArCySNwH3xOR9FahsqWOQHRYnBk4Heg/4+LathUh PloNI7X57J2mmerqOJJs/oJtjOHuV+kgciDVOveGaSyXaiZ7pwHoV6vI8GxvR909vS 6UdUPfxGV8GXPr6P+d/O1bzNNZN6//AF4U2JfbVi7zGEjWVOohWcvxOZYb+mJk22HL eR1YIMM2bHN5A== Date: Thu, 13 Jul 2023 11:02:41 +0100 From: Lee Jones To: Jean-Jacques Hiblot Cc: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v10 2/5] leds: provide devm_of_led_get_optional() Message-ID: <20230713100241.GI10768@google.com> References: <20230624084217.3079205-1-jjhiblot@traphandler.com> <20230624084217.3079205-3-jjhiblot@traphandler.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230624084217.3079205-3-jjhiblot@traphandler.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Sat, 24 Jun 2023, Jean-Jacques Hiblot wrote: > This version of devm_of_led_get() doesn't fail if a LED is not found. > Instead it returns a NULL pointer. > > Signed-off-by: Jean-Jacques Hiblot > Reviewed-by: Andy Shevchenko > --- > drivers/leds/led-class.c | 25 +++++++++++++++++++++++++ > include/linux/leds.h | 2 ++ > 2 files changed, 27 insertions(+) What Markus said isn't wrong, but isn't a blocker either. He's just repeating Linus' preferences with respect to commit logs. Ideally you should be explaining what the problem is and what this patch does to solve it in a manner that is more directing and less explanatory in the past tense. -- Lee Jones [李琼斯]