Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4714115rwb; Tue, 20 Sep 2022 19:18:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5a6EZ+SET3Xe/DYZwJcwnlUG0RPuGWInZcNLZP8f0euwrBiqjaUuueBkYIYD6/mWi5Yu5o X-Received: by 2002:aa7:ca50:0:b0:44e:973b:461e with SMTP id j16-20020aa7ca50000000b0044e973b461emr22477916edt.414.1663726713373; Tue, 20 Sep 2022 19:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663726713; cv=none; d=google.com; s=arc-20160816; b=P2gyAVzL4kmhsazE/UJEKDKiU+RYZ2Nj+uygWF8e2xxsD8tbPdiossoSqnsGSNTP4T BjAVW1Ph5fSfpu77YzpyWhcdHbjmxE/cPWtdFNo0RkHaHeV/Noje7YmT4yCwQv8HNTPa pCV+8XwDX8FlimycZcxI2A83eSupuAf5ZMWpTBu7X7XR9MkjfWVWsz9qHo0WtgRHeBts 1tC8n3ic/Fl8l7ja9A7MbenIERs6pv1ijW69J9YR6yerqT/I89r9fjFqXsvidBb+lYZU iXobPKJbPG7vGF5jSoF9XPJPgkhu3/BxzeyAvghhUvvN+kRmbO83uNV1/NxmSsi8D1Xj qdAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=30wLobZRnFv5zggcZVF2u6wy/96nEdpY/Ifl53dhDFM=; b=M3ENw0gpHnCWhpeMVdzBG8BWkESDJG85NVP0YQYIV99sZdBoff6oOb62XEY+vXEUB5 IK8yZA8B0kSNemLoeW6oJVU7qjzbU+CUrpgJHl1tE2eUVLaSEIz6q6D+HqZ0QN+XcWf+ 6OV5SKBkMI4UPgUzzXAVQ596zUsq1au6nm040i6m/Ltkpj7O9p9Kkh6oCbkYM+WClR0Q bTggjnMeX58xHnUhDuD7lbBtFELSMcHnPQN3/zOa6ElOmkBf2rp9w9wZo05x0WRtY93o 1hFZ7pZoUZGzTiqR7EPkE4cxAoGusfeauJag6VhuVMqiIXpG3SLI2NSgWXtUXONIfs0H Satg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KPvreMS9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a170906831500b0077b771999absi984181ejx.870.2022.09.20.19.18.07; Tue, 20 Sep 2022 19:18:33 -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=@gmail.com header.s=20210112 header.b=KPvreMS9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231551AbiIUBtB (ORCPT + 99 others); Tue, 20 Sep 2022 21:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbiIUBs7 (ORCPT ); Tue, 20 Sep 2022 21:48:59 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE797C1D3; Tue, 20 Sep 2022 18:48:57 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id ay9so3206024qtb.0; Tue, 20 Sep 2022 18:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=30wLobZRnFv5zggcZVF2u6wy/96nEdpY/Ifl53dhDFM=; b=KPvreMS9cTD4YrMaMm0W35RXTuEm5G6cH9FqS5KKO/LdRVMrIzDCLbnnVsrr0aTF+M N637xD82AWRAKw0fe2ZZFejrBD5iZfaLPj7akR8TDl8QqRK0Yc5StwWzkJAPUv82OBe5 /c2X2yf41KWii3ok0Kn/9kOU36HeBguY2Dz/Nekfnnij3EQIY9nBLl/PaKGQDi4oi4Pv sFFueSJMtV98szCHTj+aEUPa7E9SkqEuBaE5mBsjXhajCK1zmtmoHLWetEldHrvED/r1 niPKxhRbwuOMZGoYphFO68twpl4C32uW7DWmlFLSVhE+W8Kl2AE0vv97jtpm6LZp1X+0 OkuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=30wLobZRnFv5zggcZVF2u6wy/96nEdpY/Ifl53dhDFM=; b=4MXmWQ8o6VB7a7PHM66oXmBJE7SyE4b8MhskixzkslgKDYI9gVaujUjD+kceTgFJsX 3FMSWvly2HZOPTxP1YxOpQHtS1xv0BW+9Q45ET8gspfWBcnD9YJ8iiMt4X/pD/NsttyG 5fVoAKozHSX6BM4AKnTkVevrYPFu5oepYFdUur4m4O6j/bqucRn4Vw3eqDSLsVLMyAZn S9qq3GnYLZ1TY+Ag1ekEmaEBDzoYaIoLvMFE6bJ/51XbOLqgNA5tagY3Iw5EE/dicpvE 1ijm4ArWEKiijXZple/mYW/WrsTFoIfROmgurK3bJdZU+P4LKxo/N7SGNwxvV8/NtmLF XPDw== X-Gm-Message-State: ACrzQf2G9o9MmC1j8yGLRU8ULiWDQfFWm1hS953zimbK4J6G5UYNtsGA d0vYI1oGPMCNLZFOd+c/b6OlUjtSPqrR1U9sbkA= X-Received: by 2002:a05:622a:48c:b0:35c:d99a:3002 with SMTP id p12-20020a05622a048c00b0035cd99a3002mr17703201qtx.564.1663724937128; Tue, 20 Sep 2022 18:48:57 -0700 (PDT) MIME-Version: 1.0 References: <20220830034042.9354-2-peterwu.pub@gmail.com> <20220830034042.9354-10-peterwu.pub@gmail.com> In-Reply-To: From: ChiaEn Wu Date: Wed, 21 Sep 2022 09:48:21 +0800 Message-ID: Subject: Re: [PATCH v9 09/10] leds: flash: mt6370: Add MediaTek MT6370 flashlight support To: Han Jingoo Cc: 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 , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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: > > #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 > > > > +#define MT6370_STRBTO_MIN_US 64000 > > +#define MT6370_STRBTO_STEP_US 32000 > > +#define MT6370_STRBTO_MAX_US 2432000 > > + Hi Jingoo, This coding style is in accordance with Andy's opinion in this mail: https://lore.kernel.org/linux-arm-kernel/CAHp75Vciq4M4kVrabNV9vTLLcd1vR=bMe8JLEdAF9MkRTpcB5g@mail.gmail.com/ And I will revise other parts in v12. Thanks for your review! -- Best Regards, ChiaEn Wu