From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86205C07E9D for ; Fri, 23 Sep 2022 22:02:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231995AbiIWWCr convert rfc822-to-8bit (ORCPT ); Fri, 23 Sep 2022 18:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiIWWCp (ORCPT ); Fri, 23 Sep 2022 18:02:45 -0400 Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2421EDD3B; Fri, 23 Sep 2022 15:02:43 -0700 (PDT) Received: from omf04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 6B5201A0739; Fri, 23 Sep 2022 22:02:40 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA id B26E420028; Fri, 23 Sep 2022 22:02:19 +0000 (UTC) Message-ID: Subject: Re: [PATCH v9 09/10] leds: flash: mt6370: Add MediaTek MT6370 flashlight support From: Joe Perches To: Han Jingoo , Andy Shevchenko , torvalds@linux-foundation.org, Andrew Morton , Julia.Lawall@inria.fr, krzysztof.kozlowski@linaro.org Cc: ChiaEn Wu , lee@kernel.org, Daniel Thompson , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Jonathan Cameron , Lars-Peter Clausen , Helge Deller , Mark Brown , mazziesaccount@gmail.com, andriy.shevchenko@linux.intel.com, ChiaEn Wu , Alice Chen , ChiYuan Huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen Date: Fri, 23 Sep 2022 15:02:28 -0700 In-Reply-To: References: <20220830034042.9354-2-peterwu.pub@gmail.com> <20220830034042.9354-10-peterwu.pub@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Stat-Signature: icdqc5u914mweh6876zxemizkb1yinja X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: B26E420028 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX180tjz2i84oRN7SAvJ/UKULO1Sz9+vBSi8= X-HE-Tag: 1663970539-507553 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2022-09-23 at 14:34 -0700, Han Jingoo wrote: > On Wed, Sep 21, 2022 Andy Shevchenko wrote: > > > > On Wed, Sep 21, 2022 at 4:48 AM ChiaEn Wu wrote: > > > On Sun, Sep 18, 2022 at 3:22 AM Han Jingoo wrote: > > > > On Mon, Aug 29, 2022 ChiaEn Wu wrote: > > > > > > > +#define MT6370_ITORCH_MIN_uA 25000 > > > > > +#define MT6370_ITORCH_STEP_uA 12500 > > > > > +#define MT6370_ITORCH_MAX_uA 400000 > > > > > +#define MT6370_ITORCH_DOUBLE_MAX_uA 800000 > > > > > +#define MT6370_ISTRB_MIN_uA 50000 > > > > > +#define MT6370_ISTRB_STEP_uA 12500 > > > > > +#define MT6370_ISTRB_MAX_uA 1500000 > > > > > +#define MT6370_ISTRB_DOUBLE_MAX_uA 3000000 > > > > > > > > Use upper letters as below: > > > > For microseconds (and other -seconds) the common practice (I assume > > historically) is to use upper letters, indeed. But for current it's > > more natural to use small letters for unit multiplier as it's easier > > to read and understand. I think it's fine. see: commit 22735ce857a2d9f4e6eec37c36be3fcf9d21d154 Author: Joe Perches Date: Wed Jul 3 15:05:33 2013 -0700 checkpatch: ignore SI unit CamelCase variants like "_uV" Many existing variable names use SI like variants that should be otherwise obvious and acceptable.