Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3343965rwd; Mon, 22 May 2023 12:14:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+Eb6aTfAzazlM2c4sfQkNJLivruLfLvtQMHdYVWguYfm7xG2bIgJmCJZkasC9fLlDkFLf X-Received: by 2002:a05:6a20:3d83:b0:104:beb4:da38 with SMTP id s3-20020a056a203d8300b00104beb4da38mr12381991pzi.35.1684782850031; Mon, 22 May 2023 12:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684782850; cv=none; d=google.com; s=arc-20160816; b=yuIkJZOhOiO3Ng7OaG4jiX1Tc/KZSsoZjTTm68rZSmrmyPS+lOkaM6Ejl/9/wfvtMH RiWsLtIDbyM2f3Qi+lE1q1z6M3upPkMw/NwgS7VO9DPZtGxTkPeHYSF8uip32o625xHT deQ6OBr/n2Rz7dr/1tJbff/pwsH8zFkJeInAjGNEQraE45gvF0Qa3vsFpMhtnDlCRf3y 92VWitM/RNhZUPgZ+2eUKJG7mNb4vxHnzGTGLLPu24axGCWMjbou4A7z6YipZUY5dF4o I6AYVBRVkg3RdGdqYZLFRvvctTsa7ikflekVFujbTmQKpEceps4XcK9+bVOx7vohNu4v oMXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=30Eg1W0/PVJoNgJmlhViRtPm/hFCComHEofZ84WbfT0=; b=N1KB5TgMz+nYwXx8j0K3SfTVJM/ZTDtbHyVqxGkUphkVztN9ti+sBHTZwfXeFTc4Nq X1vFOmkeBSJn6LhcAGZuNo5+N7u/01O1tsMdqRiG+zkwmrbU7kWe97iYZ76OHSxRytGK xsbkDNNSTSskneWCRakeimkxePqKYeOl91i3a/jtCU8Uade3e9vWh8desiDlE18DaIlg zzMbnDWkxW5vVtb6oYqRvx4MvBcqm2U0q0gduA0CZe8YX9vQhq/WnwyuGkRLQxtdh3yb G0S6hxc7VyKKa/b1zJ5eofaqOXfmHcBGoJvWSCGt1+Zu+Yf84IxdojNzqYtPgxrFrBIz wluQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=brsvc4vj; 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 e27-20020aa7981b000000b0064d5b6864d0si392981pfl.76.2023.05.22.12.13.55; Mon, 22 May 2023 12:14:10 -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=20221208 header.b=brsvc4vj; 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 S231418AbjEVSxi (ORCPT + 99 others); Mon, 22 May 2023 14:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjEVSxg (ORCPT ); Mon, 22 May 2023 14:53:36 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B88C2CA; Mon, 22 May 2023 11:53:35 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-62382e9cb8dso28259286d6.2; Mon, 22 May 2023 11:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684781615; x=1687373615; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=30Eg1W0/PVJoNgJmlhViRtPm/hFCComHEofZ84WbfT0=; b=brsvc4vjuFNOIePz5krAnwGysQawUWClCxx8s2XANWCrZmucEXAQL6QT4bhG/14HO1 U8/l1bM6PCTEbvquyTQvB+n6XabC0UJKNY9/fI0aG2+jeLH9XINjl9WS0E3kjtGgwCHK nF4JMiVIRgMO+q6xifp/Jlj7yUoLzYO2vSh4DS+Z08e2NQAj6BaT3gpGs77qDgyMW7f2 0dnzB59sDRSgUEOaDK7PKflHjo6ryYs0LGUpSjeG8lhN+ORjysL07UIvZpRn6yA/dQZn fB6ZB4QD0rj/sp6tuGOFs3gI6g/KYiOti6zuMtx3iwYFGPE2NMCVaKLKJaOR7P0eatmP zZTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684781615; x=1687373615; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=30Eg1W0/PVJoNgJmlhViRtPm/hFCComHEofZ84WbfT0=; b=R/hcwzdFcRHnP4CMvkoZ+PG2BuJ9Ra8OIYdtb4qAJKFk/XihNpgZuOGl/8F7uJ6NQp OO7A2aPtxAxdJFT2Kh563emR9sRqrzTiAXa+jDS81CrWTHyLIP5OBkWJW3g120H39vIr 4iVaCeje7fkjza59nwC4oWXi3RQuvSMGNl3w4qJC8vr09Ayf4jgq8BqSCp18hfewAKRh 3DlfiZw62Oxzcv+zZRq5VpTqNRoNly2iStSPv2oPpvjnMYXYpSly4SwzHQ9BcjyE47AA PwWqEQIstoYQW9ndkq3G1qgu7B5Rmvdja9Xjqx6ZL81s0Z8zYb3spf70MK74LN+1ISW9 zGgg== X-Gm-Message-State: AC+VfDxPMYXOrqITTeQ4smNzQzL7my9e689tIVD0whpmtMOX4mdyCIq+ cYWHmCnoML08/xoU8U4oWpaxwYOcoJ32pFFvSHs= X-Received: by 2002:a05:6214:21e8:b0:618:e1d9:75b8 with SMTP id p8-20020a05621421e800b00618e1d975b8mr19386293qvj.34.1684781614780; Mon, 22 May 2023 11:53:34 -0700 (PDT) MIME-Version: 1.0 References: <20230517195238.34069-1-mmkurbanov@sberdevices.ru> <20230517195238.34069-3-mmkurbanov@sberdevices.ru> <20230522071426.GP404509@google.com> <20230522163537.GR404509@google.com> In-Reply-To: <20230522163537.GR404509@google.com> From: Andy Shevchenko Date: Mon, 22 May 2023 21:52:58 +0300 Message-ID: Subject: Re: [PATCH v4 2/2] leds: add aw20xx driver To: Lee Jones Cc: Martin Kurbanov , Pavel Machek , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, kernel@sberdevices.ru Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,T_SCC_BODY_TEXT_LINE 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 Mon, May 22, 2023 at 7:35=E2=80=AFPM Lee Jones wrote: > On Mon, 22 May 2023, Andy Shevchenko wrote: > > On Mon, May 22, 2023 at 10:14=E2=80=AFAM Lee Jones wro= te: > > > On Thu, 18 May 2023, Andy Shevchenko wrote: > > > > On Wed, May 17, 2023 at 10:52=E2=80=AFPM Martin Kurbanov > > > > wrote: ... > > > > I would do > > > > > > > > i =3D 0; > > > > > > > > here and drop the assignment in the definition block to be more rob= ust > > > > > > "here" where? > > > > > You've removed all context. > > > > That's not true. The below line exclusively defines the location in > > the code that I'm talking about. Note, Martin understood that AFAICT > > and addressed in the new version. > > I'd expect the author to have a solid understanding of the code. I > found this difficult to read as-was and had to go look at the patch to > understand it. I see your point. > No biggy. Just something to bear in mind. No worries, and thanks for the remark. I'll try my best to satisfy others and not only the author of the code in the future reviews. > > > > against sudden reuse of i in between. > > > > > > > > > + device_for_each_child_node(dev, child) { > > > > > > > > > + i++; > > > > > + } --=20 With Best Regards, Andy Shevchenko