Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp692380imw; Wed, 13 Jul 2022 06:25:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sAWJ+wfdQjl7Hki/kbXOS8GnGA0j1KqGGojKUwHmSJEf2FTIm7w8dPq7jdZHSaW54zxeIo X-Received: by 2002:a65:52c2:0:b0:412:b049:5262 with SMTP id z2-20020a6552c2000000b00412b0495262mr2833568pgp.343.1657718735866; Wed, 13 Jul 2022 06:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657718735; cv=none; d=google.com; s=arc-20160816; b=tDwWHP9AWXMmFvVMMRHrtUhN55R+IeHeXZKA8SJubMkfgGc0zF7Y/vgzO0qDnwCBCt Vw5dEwz/1WRuOb4xpHjOnqe8XjFuTxS9Zl1XH8SZ+MrYT1IHhZapvxYHd+KM31pzlviS 5PpCk1voz6PP1CCk161Phpg6RSGq2vGgK9z/PLlrG4O5dnHtNE42QsDTgM5KkFzYFapD 3Zl66AmooFCQN3muZMv2dDNkjXO9B/9xRhKI0PSibvY2GPVNgvm1rKpf9h5fIVoNW0rM fgw+RXByFMx0e+Cyx062nR2C3i9gtGTI04LsEXUFiL4zIIx1rJyw6YErUkYlsZVGPPAg 4CWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZDp5NtLIxNT/y/y4TV28JKQZE5KPsmeDwau7U2nvfbI=; b=OcJA4IqVf8kKuRAfFiFEz6Lkx0zEh51zazIpbu2HQVZzIEruvhtKupTEnK0r75k4o6 8+9ocLU8c5SHbjDSeeME20HCk5HoqNUeCGLoApoHnx5a36VHectkOso7aIZ/7qjQ67Wv 9rf/68DaFBz3jzile7/ZtVctC2YLUaxXwW2D56kKzfssTYpb7qQN+yBTwomD4/qMcg++ 4okO2FfAnC40YNojue2n8r8S/utFIXzUefELrHqzwjqahes8ieQ/EtdWLNT4ejVojMnk J8PCkTLwS5IH9pa9Lwb22HBvwiMwWAyFFIV3hzJYsw2VjtXoIZnX3tdFbdoLwlrBOMDV eJ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ykcE/L76"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e186-20020a6369c3000000b004126d7ca343si16636546pgc.641.2022.07.13.06.25.23; Wed, 13 Jul 2022 06:25:35 -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=@linaro.org header.s=google header.b="ykcE/L76"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235834AbiGMNHt (ORCPT + 99 others); Wed, 13 Jul 2022 09:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235051AbiGMNHr (ORCPT ); Wed, 13 Jul 2022 09:07:47 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A4D6637D for ; Wed, 13 Jul 2022 06:07:40 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id q9so15431537wrd.8 for ; Wed, 13 Jul 2022 06:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=ZDp5NtLIxNT/y/y4TV28JKQZE5KPsmeDwau7U2nvfbI=; b=ykcE/L76OyKjfmB6gW/9PEIXPb7KX9wbY5QZt6rzoJ7cx+NshQnf3zYFk9CJJmZ/WM Yjn5tpbDrFkjNkWS+WFrkqjSfGYuauzrhkLnPgPWJ+ijDPIFajS1TTDtmC2uQEI2eXJq v/PjSpgG/525Lm1jJ94ez4EFFEytapEdMWKLq79xQRBWSawK2YgrGJjhf+6mviSVU3q3 kOx9C54FFQzStrBSdTBuFlQdgkenCIZH2XWgb8DLkaqKQZ3XbPUtvaJN7A3d1aNdPv+L MOY47XiJ+MoxEz7XvBmRhEiBH0MhBUFHBMZQFzRyd4+1IQ/e0LRFMgzPqoPQQ++2EeCE bFRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ZDp5NtLIxNT/y/y4TV28JKQZE5KPsmeDwau7U2nvfbI=; b=6EsJQZRYVT7eM2qSK4S3Q0/W/FqkvjrDJrbYy4aTsoAXgFLQOGxr5OOdGfV1PtQKyP PFEhvtvmoGQx9TA8GAwSNzzbRcr/xQGTLqvg0lTuu4WyLINd7qyHklkBI2LtbkK2SlNI 4CkQUGwZqUp+A5UHFA2TsAYHvAHdcffTpTCqUg3RqbDjhU/Zr6EuU847DO6g0iQw6ihk F0qZVGaKWjsNYylDBzG69htZR4A8Jwl5ABgpCDeYaYKMbiHsJ4ELBxqRZqXhozBygvAi mv+9+5OBsmfv/gOW+JWr48yloPneh7rvrQkPE1ZGpBNleuZ+Fw6Z0VFKfN6IWHHeUblt kh4g== X-Gm-Message-State: AJIora9+eemf7YoR6zmBo6sb6SDnP1uadnbtNvx36bCZPDfbSwqElPps 5a5doSl33hQOHvy530qhFWQ6Eg== X-Received: by 2002:a5d:5747:0:b0:21d:65e9:be07 with SMTP id q7-20020a5d5747000000b0021d65e9be07mr3162978wrw.215.1657717658781; Wed, 13 Jul 2022 06:07:38 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id l29-20020a05600c1d1d00b0039749b01ea7sm2628398wms.32.2022.07.13.06.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 06:07:38 -0700 (PDT) Date: Wed, 13 Jul 2022 14:07:35 +0100 From: Lee Jones To: Andy Shevchenko Cc: ChiaEn Wu , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Chunfeng Yun , Greg Kroah-Hartman , Jonathan Cameron , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Guenter Roeck , "Krogerus, Heikki" , Helge Deller , ChiaEn Wu , Alice Chen , cy_huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , USB , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen Subject: Re: [PATCH v4 13/13] video: backlight: mt6370: Add Mediatek MT6370 support Message-ID: References: <20220704053901.728-1-peterwu.pub@gmail.com> <20220704053901.728-14-peterwu.pub@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, 13 Jul 2022, Andy Shevchenko wrote: > On Wed, Jul 13, 2022 at 12:53 PM ChiaEn Wu wrote: > > Andy Shevchenko 於 2022年7月5日 週二 清晨5:14寫道: > > > On Mon, Jul 4, 2022 at 7:43 AM ChiaEn Wu wrote: > > Please, remove unneeded context when replying! > > ... > > > > > + brightness_val[0] = (brightness - 1) & MT6370_BL_DIM2_MASK; > > > > + brightness_val[1] = (brightness - 1) > > > > + >> fls(MT6370_BL_DIM2_MASK); > > > > > > Bad indentation. One line? > > > > Well... if indent to one line, it will be over 80 characters(or called columns?) > > From my understanding, it is not allowed, right?? > > It's allowed to some extent.Use your common sense. > Here it's obviously broken indentation. Refrain from going crazy though - hard limit is 100 chars. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog