From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDBDCC77B75 for ; Mon, 22 May 2023 07:15:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbjEVHPF (ORCPT ); Mon, 22 May 2023 03:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232305AbjEVHOg (ORCPT ); Mon, 22 May 2023 03:14:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F22091; Mon, 22 May 2023 00:14:32 -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 3048B61DC7; Mon, 22 May 2023 07:14:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 874CEC433EF; Mon, 22 May 2023 07:14:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684739671; bh=lmWU6i3NJC4g5wzn78+kIdxEJ31Orcie7JQOZ6pZMkA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=INc6zUqBSFZz3GoCqKI6+Zk4JDhHjSgelqL36goyddW+PN60g6FJ+mJHVrr+5ayV1 zytTen9WyF4cUQij3g8NTHELtklcNHWFPdD4gD8awMOlPH2N93TZBjV9RLg2z1GRHQ LNjCoXbi9LV+9gKeMQzFA8UrvgvHds3rBdpm8fUo9SKolCiQbahH7ddQ4FZp+v7CTy vHYfDwnigZGt+ADJXxSwJgD2VsAZtpSgKM3CWJnk6uhUgRrpqYDZX/LfFtBG64jk+s 8E+i0v+W8xdLyejC1Mjve+biZKOLkfeyE0L+3T71qA0ZbbDWQ87arsXfOqONXG4VB1 w6z0MLIggaP1g== Date: Mon, 22 May 2023 08:14:26 +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: <20230522071426.GP404509@google.com> References: <20230517195238.34069-1-mmkurbanov@sberdevices.ru> <20230517195238.34069-3-mmkurbanov@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org On Thu, 18 May 2023, Andy Shevchenko wrote: > On Wed, May 17, 2023 at 10:52 PM Martin Kurbanov > wrote: > > > > This commit adds support for AWINIC AW20036/AW20054/AW20072 LED driver. > > This driver supports following AW200XX features: > > - Individual 64-level DIM currents > > With or without below > Reviewed-by: Andy Shevchenko > > ... > > > +static int aw200xx_probe_dt(struct device *dev, struct aw200xx *chip) > > _dt is not fully correct suffix, it's now firmware properties, so perhaps _fw? > > ... > > 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. > against sudden reuse of i in between. > > > + device_for_each_child_node(dev, child) { > > > + i++; > > + } > > -- > With Best Regards, > Andy Shevchenko -- Lee Jones [李琼斯]