Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1612426rwb; Fri, 23 Sep 2022 15:48:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xk59aCwPK1nS0QA03XmbpNMUDF+IM7nag3XtutbtUxLYRj0BlkHgU/YE6iz/qMwrSibkE X-Received: by 2002:a17:906:9c82:b0:781:5752:4f2b with SMTP id fj2-20020a1709069c8200b0078157524f2bmr8698190ejc.561.1663973302225; Fri, 23 Sep 2022 15:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663973302; cv=none; d=google.com; s=arc-20160816; b=w/zgdPqWIk4dEmoQyf5okzK5XOH0HmiNuvmN+7an9ePp1S/nNDJEyf69vflDKWGPPM DE7b5sNhV0pMuF1bEJsD0afV/ycf1QSv3xCiJkTHj8TC3+2vdApADiNG6sLbS0wlxm58 Vj5z/KebuJf9kHQCq3FjzCfjlD1VC9ieGfA6cqtqmK1kE1V+C4FgGTGDrUlTqlA19FE+ d6N6idAYbgW0XdqUACEhjO4EQkL71EMmXVPgUkO029VNeKzhcT+FXEKQxS5vTo4Wi6Ql ODxDRmIsNLCmHkC52pN/ruCS+WAk4IbB0J0lSwEz/pxUalQUIp+Zv05g9AChTWnZ83AT yz5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=7eKpsHebDWmwGsVVJ/ot1M/3b2Ijgedtl5NscSJL2TA=; b=dKiGAT6dNVU284Q0oXj/PRf8rEg0UkLlGWcW7rg7lhCi5690iVt3d3Y1QhJ3cK8bmF M9X3dBTvJ4DiFGFw9y+HboPOHNQVDYeeCNPxtzQpIQDhIVtYW4tn2Ev7t13nXACKlTff yApZ40SO9e23q32rTK4INWsLIoeXaZL5jg8F/uVL1r7yMiA7ypt9CXiD6kjCpbVCILoL zkZpSKH9n/YtO33RMdqHrL/FTXZ9F8ReLPWM7JTF3B94buyBo9NSD19OYQ7nK5q+HD5h qZR6xkRtRxSVIXOHrkMN6QPFS0uWYnYk9LzKG2Z31ZfW5xCxwl3aYTUIb7CVx/Am1QiP P0JQ== 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 h24-20020a50cdd8000000b00447879e8221si8626148edj.247.2022.09.23.15.47.57; Fri, 23 Sep 2022 15:48:22 -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 S231968AbiIWWCr convert rfc822-to-8bit (ORCPT + 99 others); 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-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX180tjz2i84oRN7SAvJ/UKULO1Sz9+vBSi8= X-HE-Tag: 1663970539-507553 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 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.