Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6840884ybi; Mon, 22 Jul 2019 02:37:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrfRz71VmfPJPOYaPuG3W6+uPzR4IWt0uOGOw2njGti6KFX4gZ5OrP0AfXklGFGV4kEz3B X-Received: by 2002:a63:8f16:: with SMTP id n22mr159978pgd.306.1563788239500; Mon, 22 Jul 2019 02:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563788239; cv=none; d=google.com; s=arc-20160816; b=XCtYd+MiNPAX97Fxty/riYe21aJoNBvvi/vDCuTEIRszbZmuPpD8629u89wni39xgy pWmy2n3I3FpyVDEkaa6FTrfAHVL86vAJPHsWEA4+nX7Lj6FaKJs6uKDrUyKLB9do1zhA dcgte0+1bmWsXHcsKCuet2OPzzt4dONZwTZ4gUcttKBn6XT5naKbilDUJHgQeo9/Jdx2 WOdestkCbDYM994hpiiNRpWDdjrqKKijdcFZQTDKsTOyGVPlf1Viu5G9NYe3ZioInxK0 dzlQCAEhvzjB+mqRzRkg0ky6qtRHYp+G2q1g/XAa8+CSxbSI0gT0XNRM5gMQ1HP4bv8B Lh5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=Ncj5VUQVEHDJsCeiH3qoKw8KN6c5XXqkyFI5ihmkcYs=; b=rDlmXj8/Y3k7vSl/G/TulomZ+BabqBPIyq1d+87qzUmspnPfx1W2ZnzhtQRAnavw9z mwWfusQyAIKky710Mh3RicEn8g5Figu1pNULrktZUXPcmAFxc+A4g37aAW06sD5xkxxO IzkP/QRI5dGVrZEwMVf1fKOwf0vpxLLqCl6llxExKcxB0QaRktFGUkblr/VJB33RLRq9 dbUHrDpeEPUjdLkMdTIVmU+qBFN8O3WFl3F430G/x/3b64DcOUsME1k7TeSnLUvxAyr/ BPeVQProAB8Qim7ERpoOhCEgEHpp9rzp60sdpHN+QUmQU7cJHhgmHe2uIXKSwyPQbWRQ V53w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77si11524685pge.315.2019.07.22.02.37.03; Mon, 22 Jul 2019 02:37:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728628AbfGVIn0 (ORCPT + 99 others); Mon, 22 Jul 2019 04:43:26 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:39071 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727699AbfGVInZ (ORCPT ); Mon, 22 Jul 2019 04:43:25 -0400 Received: from [192.168.1.110] ([77.2.59.209]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N1fei-1iZipz0WpE-0123bs; Mon, 22 Jul 2019 10:43:19 +0200 Subject: Re: [PATCH] leds: ktd2692: Fix a typo in the name of a constant To: Christophe JAILLET , jacek.anaszewski@gmail.com, pavel@ucw.cz, dmurphy@ti.com Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20190721210539.25669-1-christophe.jaillet@wanadoo.fr> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: <578003f3-d4a6-1788-b819-166e4203744f@metux.net> Date: Mon, 22 Jul 2019 10:43:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190721210539.25669-1-christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Fc6XiBlR0wgG0vzMRIlPu3KKCnfDzOs3R7oNh3F/j8qA2YUTDzl rXNj5GMUKeXGA79BCbOv8YBvTIEz5dVtHug15GpIwfI/+WxiaA/lyjOXxw8VtFEjWTHfReL +FSp28ZBMRy+u+Z9aTnk9npnup/JDP/n6mtO98ZmKDZrFcHodmuAYMdb/MIvYlXOLZb1Ocn cLDM8YZ8fvjdpFR598VnA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1CNsv0lf3/U=:g8QA9yuFimiZoPf+nOWzjJ AgjNWzKsfNfVx+TNv+toR4W40Fqh5krjJ6F5hglK/SjvnExWAt/K6BnAupJjha/pnxsUJ977B i3ZIM8AaVLyj/aOuYY318vWh9s+UobO9CVtH+WESzXWnO2WL799EzUYVfeeOC2RrhyhvisugH GVX7FN48oXe5emDOBWUrjIso6a0Y3wntqRrT1WDJLTwzVoQKUpH2NwEsSACM+BDY9mhPJssni LRTIiAvqXTsLln1ZfwfY/tC85Qx1CngDy9Y8WIQiAmFdbN+Pk4DdwSy+GMwi6j/ZWo6aKY7zK HMYuQBNa0PCxW3SuCJvccYjdzArtKz70TXs+h7KYUPHk+pyIKXB4v9ZtifgWxCWXFJ/PJYeks NRarzB3htAtCLtyxwzq+v34tbWp2jj/JMnU45HMi7xQj5bpcg2zwVYW+2NbK3PMI+KBIisRJ9 vb5I1BAIqEYK/kxkCsT/48or/0L0wUkqdwVYhZg6VmCtm+gby4iFfnuW5NOrqVQUnQVNoNvA2 5CTKWAFChH4O/+PD3L6kjUHs2JKcRl+1MNIwkCK8ZqruJf+hM6Ltehfg97Kd9q0p876UpEUmq xuaUqrSZh/pnu2w/VUb/1HfeXtiSnCXLd0grmvStC0KGg0SgRGoaX9s7veXHMswmsb9PR9wUB J9Wqy0lF6gcaN8IUwcuS1BXEbcYd6f5qjOKY7/ioOTD0ldl/iCoHr7CT54LxyesblI9MNksZD cL2HV7/X0sxENu1+5TG1XLUV7IqdPhev4+2f+f/3Q7mqXM21OTJIb4tyjak= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.07.19 23:05, Christophe JAILLET wrote: > There is a typo in KTD2962_MM_MIN_CURR_THRESHOLD_SCALE. 6 and 9 are > switched in 2962. > > Define and use KTD2692_MM_MIN_CURR_THRESHOLD_SCALE instead. > > Signed-off-by: Christophe JAILLET > --- > drivers/leds/leds-ktd2692.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/leds/leds-ktd2692.c b/drivers/leds/leds-ktd2692.c > index 45296aaca9da..44db748c570e 100644 > --- a/drivers/leds/leds-ktd2692.c > +++ b/drivers/leds/leds-ktd2692.c > @@ -22,7 +22,7 @@ > /* Value related the movie mode */ > #define KTD2692_MOVIE_MODE_CURRENT_LEVELS 16 > #define KTD2692_MM_TO_FL_RATIO(x) ((x) / 3) > -#define KTD2962_MM_MIN_CURR_THRESHOLD_SCALE 8 > +#define KTD2692_MM_MIN_CURR_THRESHOLD_SCALE 8 > > /* Value related the flash mode */ > #define KTD2692_FLASH_MODE_TIMEOUT_LEVELS 8 > @@ -253,7 +253,7 @@ static void ktd2692_setup(struct ktd2692_context *led) > ktd2692_expresswire_reset(led); > gpiod_direction_output(led->aux_gpio, KTD2692_LOW); > > - ktd2692_expresswire_write(led, (KTD2962_MM_MIN_CURR_THRESHOLD_SCALE - 1) > + ktd2692_expresswire_write(led, (KTD2692_MM_MIN_CURR_THRESHOLD_SCALE - 1) > | KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE); > ktd2692_expresswire_write(led, KTD2692_FLASH_MODE_CURR_PERCENT(45) > | KTD2692_REG_FLASH_CURRENT_BASE); > Reviewed-By: Enrico Weigelt -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287