Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp761989pxr; Mon, 11 Apr 2022 06:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ZkH+EM28DUJVuOnwQ3j8YJ53KnKnNsPvCjPVvn0Fe47wPYRW6uck5naS0YhBmI0ZHgL8 X-Received: by 2002:a62:e815:0:b0:505:8dbb:2f33 with SMTP id c21-20020a62e815000000b005058dbb2f33mr15402473pfi.68.1649684381181; Mon, 11 Apr 2022 06:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649684381; cv=none; d=google.com; s=arc-20160816; b=QovB4Qv8NKfMpHpm10BhHil7KEVqZR5JsvM4nvqGTwp7c9khUM7CGi8WjkXYKKBXRm lx3al+W0muq2CnJtm7rbiDraUsamrz/qKBvV2Ncp3JUUSI/neX7wyzy38pHuhca4m/ce LgHi9I0nuztFlmGOShKEQGzVJlqcedFgUcbxq4akom1KydyDYd2qs4piUkbeCsghrDqv 24Z6AJFX2NR6NeBZeAiFaitftNFUpeeuC9cbIpvFfzaZC6qhh2r5lC9YquxHY5b0gack 4OdJGpytMy1Ur2iAPHZW5GletjO1BXvjxkTwZzKFBBVHbLkE7scdCz97mXcDgTf4oKPb yUZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=JXczPNAC0GUHYABKDZc18RM0XcSQy2nYLI4URNHisHs=; b=MoeMe4NYOPqwnn8Qnkd37eFrZyRn17qENlCxpGVGRmDf0qR19UYu6mOc7+sf8H/LpD c0X/6yDylpvpfjnbs4Ul18xceRKH6zrTSvGcyaCda1AMnc8ejkPkSS2860/dGM6ENu1i p2BxsPqyqNnVfudLfIYiGPFeb6uidH9aTjC/C29c9mEp/N/cyp1NY7tgm/7v5mnxpqeO qF1knmCb7oAcHiX4DBTdOzreaNfFXs6S/oxoiLwNawYHe/FF3AWWjV2T2hTpC0uTkSQy DA3FiSdCLdsAXbexhjU1ugYy26URQIjC2bPKoY05NIXur6Babm/5AP4ie1EBXLPSsAgr yMCw== ARC-Authentication-Results: i=1; mx.google.com; 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 h6-20020a056a00218600b004faa6d525ddsi9505159pfi.269.2022.04.11.06.39.25; Mon, 11 Apr 2022 06:39:41 -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; 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 S234510AbiDHRAL (ORCPT + 99 others); Fri, 8 Apr 2022 13:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234593AbiDHRAI (ORCPT ); Fri, 8 Apr 2022 13:00:08 -0400 Received: from smtp.smtpout.orange.fr (smtp09.smtpout.orange.fr [80.12.242.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B658343301 for ; Fri, 8 Apr 2022 09:58:01 -0700 (PDT) Received: from [192.168.1.18] ([86.243.180.246]) by smtp.orange.fr with ESMTPA id crvlnGf4Gs0FRcrvlnrZPt; Fri, 08 Apr 2022 18:57:59 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Fri, 08 Apr 2022 18:57:59 +0200 X-ME-IP: 86.243.180.246 Message-ID: Date: Fri, 8 Apr 2022 18:57:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 2/2] leds: ktd2692: Make aux-gpios optional Content-Language: fr To: Markuss Broks , linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Pavel Machek , Rob Herring , Linus Walleij , linux-leds@vger.kernel.org, devicetree@vger.kernel.org References: <20220408163330.200898-1-markuss.broks@gmail.com> <20220408163330.200898-3-markuss.broks@gmail.com> From: Marion & Christophe JAILLET In-Reply-To: <20220408163330.200898-3-markuss.broks@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Le 08/04/2022 à 18:33, Markuss Broks a écrit : > Make the AUX pin optional, since it isn't a core part of functionality, > and the device is designed to be operational with only one CTRL pin. > > Also pick up maintenance for the LED driver and the yaml bindings. > > Signed-off-by: Markuss Broks > --- > MAINTAINERS | 6 ++++++ > drivers/leds/flash/leds-ktd2692.c | 7 +++---- > 2 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 2db49ea7ae55..8ef5667a1d98 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -10479,6 +10479,12 @@ S: Maintained > F: Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml > F: drivers/video/backlight/ktd253-backlight.c > > +KTD2692 FLASH LED DRIVER > +M: Markuss Broks > +S: Maintained > +F: Documentation/devicetree/bindings/leds/backlight/kinetic,ktd2692.yaml > +F: drivers/leds/flash/leds-ktd2692.yaml > + > KTEST > M: Steven Rostedt > M: John Hawley > diff --git a/drivers/leds/flash/leds-ktd2692.c b/drivers/leds/flash/leds-ktd2692.c > index f341da1503a4..26edf41dfa7d 100644 > --- a/drivers/leds/flash/leds-ktd2692.c > +++ b/drivers/leds/flash/leds-ktd2692.c > @@ -284,10 +284,9 @@ static int ktd2692_parse_dt(struct ktd2692_context *led, struct device *dev, > return ret; > } > > - led->aux_gpio = devm_gpiod_get(dev, "aux", GPIOD_ASIS); > - ret = PTR_ERR_OR_ZERO(led->aux_gpio); > - if (ret) { > - dev_err(dev, "cannot get aux-gpios %d\n", ret); > + led->aux_gpio = devm_gpiod_get_optional(dev, "aux", GPIOD_ASIS); > + if (IS_ERR(led->aux_gpio)) { > + dev_err(dev, "cannot get aux-gpios: %d\n", ret); > return ret; Hi, 'ret' is known to be 0 at this point. maybe adding:    ret = PTR_ERR(led->aux_gpio); ? CJ > } >