Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3197989rwd; Mon, 22 May 2023 09:58:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/ZJbvyaitfqsDDEWVayuKDFjNMnd9u9VYbPjLVWTO1ZURkgxULgQumuuxx5H0L14wuaR2 X-Received: by 2002:a17:902:e5c8:b0:1aa:e425:2527 with SMTP id u8-20020a170902e5c800b001aae4252527mr11689337plf.21.1684774728195; Mon, 22 May 2023 09:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684774728; cv=none; d=google.com; s=arc-20160816; b=gyUQV8TfcV4EjRy5eGJGaS1G4VW+bSQ0B2FHSxG3CZ3lcukohG5Fbo36PzNQb0gpZu OaeHok3MzMedh8UkAuG5s5ZV4Ra4yBEKT7kK1Y1mpA0NTNxa7GfFoh3Gz32UPvKq31MF 4pGQfQqYa5HLObXlWvmYn8S3NTetaBWmNzp2b8T+MYELbcdVXrAoIHWm6IpHIl+eA6D4 NPeydmKa78U4efdaoUhNlfp1n63ut6RtLl99nRzjm/Kn6RxfY8EpKWSC+p4RPEG/ASDm 3DMOHFLqwC5e5ReBTyepJtZqZPEEP+zW/ZgNYo0T6wbu2BF/MqOMCt0qHa3GOEmKS8Zg Ai+A== 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=LjyPsUy44G3LMd5T0075++4xbmQj8YocwSJdLcXsl2o=; b=FJTD4vOXQe+NOrr/0QQbZri6ENMygAnRqZprR6fm74w9x7Kgpaud8B4+lZFIL/fJeP m16lTzp0jlCGjjeVYJAfz9E0EdP08ml8/ZKNJBuYytmbdlFsJoa9jTRWXhVgzDFrLg92 V1gIGqLrGU5PKYXZ7VUV2aTe1TUzKJADei9tQtGdrOs9P0aJNpUGKurTNnRJGbOrgsyh 6ZSLajE7dD7Syn45Ptj5KIQacwByKh7NVDBbHTpK39ZdSifneCtiUiPJNV0I0HrOd+e7 gHTUe/3w9/cZ16T9d/7a4ypEP4xDScBeq8zYLDQxKERc5jlHD8mAwxYBefamV51JkpzY BpFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mHWexFxD; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a170903024c00b001a64fba3382si5049144plh.148.2023.05.22.09.58.34; Mon, 22 May 2023 09:58:48 -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=@kernel.org header.s=k20201202 header.b=mHWexFxD; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232223AbjEVQfp (ORCPT + 99 others); Mon, 22 May 2023 12:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbjEVQfo (ORCPT ); Mon, 22 May 2023 12:35:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54A43CF; Mon, 22 May 2023 09:35:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4EDA61EAB; Mon, 22 May 2023 16:35:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80579C433EF; Mon, 22 May 2023 16:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684773342; bh=Mfqycb99KKOtWcsvOSNVQnX/iL5IooyCsD0WOoMPhnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mHWexFxDhwjtYlvMalofMjG4xtj0oI04Ewm5kSATYYq/TS8D4Xz1spiBtUa6N7GrI BoVFCguCwfzuV89nb0uFLHyV1xb3KNaMqdo3xDNO5WRb0N6VQ33z1UO5kC4gih0qNe o98pPgsZTnJfX9iKG1W+1mmdWvzkqO+W8ggT5RV2Fqw6T2DgIArkXnptAH2xEDWjtf WgtEdIp3pMZn69FOqSANIlEkz/C6LDRcZAhlEmay5YH6BajnqUBUkj/Q4VU/EGygPR VkUeNCnulBcpGoD6amgY2/4huHU/34Y0Vrx1u0XKd94l3giQCFE3l3CfBmIdCQZdUI aMMNIEWt/k8Gw== Date: Mon, 22 May 2023 17:35:37 +0100 From: Lee Jones To: Andy Shevchenko 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 Subject: Re: [PATCH v4 2/2] leds: add aw20xx driver Message-ID: <20230522163537.GR404509@google.com> References: <20230517195238.34069-1-mmkurbanov@sberdevices.ru> <20230517195238.34069-3-mmkurbanov@sberdevices.ru> <20230522071426.GP404509@google.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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, 22 May 2023, Andy Shevchenko wrote: > On Mon, May 22, 2023 at 10:14 AM Lee Jones wrote: > > On Thu, 18 May 2023, Andy Shevchenko wrote: > > > On Wed, May 17, 2023 at 10:52 PM Martin Kurbanov > > > wrote: > > ... > > > > I would do > > > > > > i = 0; > > > > > > here and drop the assignment in the definition block to be more robust > > > > "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. No biggy. Just something to bear in mind. > > > against sudden reuse of i in between. > > > > > > > + device_for_each_child_node(dev, child) { > > > > > > > + i++; > > > > + } > > > -- > With Best Regards, > Andy Shevchenk -- Lee Jones [李琼斯]