Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp160729pxk; Wed, 9 Sep 2020 01:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxafw1k/fMVXYhUZsjmn/TN8ZVt29fsWsNoKes4dH9Qc8miEDw+FeX+XwYXETm0xV/pK40 X-Received: by 2002:a05:6402:1641:: with SMTP id s1mr3152291edx.66.1599641283696; Wed, 09 Sep 2020 01:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599641283; cv=none; d=google.com; s=arc-20160816; b=HBozT4AAOvfc+KzLbiIWDY2c4HfxIv+QxD6J1cSGGzzyhyjnfjfJDjCHCcAVWkQCic sH6VrJUG/oveStBuT5ZMpbrHiKYqd4p3f+jRxRvbHCiPS/rJwxgwv6eubvF4AC11LDHI P7groeszsLBM9TT1muLCaHVVr36wFyQWmREJfNw4K+cdpfnErAxVtYQUHWJTrPz+fsO3 xnHycUwVSB4oCRrVqurBEm8V8bn4hxNgRcvx10Dxy0G8uN8dUvxvngD7W54vK48DA2rV loJrCl96uGHkoZWvU0z0rXwFj5wThftXO9jmVeM98gIzsQ4TfwePMxWH61yTtyTuUoxg fELw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=O3iUHvTS/bMw21txH+sT5It8TtRbFs6KIfPWPIIkWzg=; b=gStMuePqra5WfWO8yTiyDWZxyXBun41rXjD17xVBhctFL6PgcHbIa46vuf4vqag7+2 fGeOdbN3kXBqqw39dpFN6m9sNcyjKt9J1ydwPBJS2rC503el0OA6ObnEvE0wAZDkwbHA cq1qdt4uXI48/jGxg0kX+0Spapo3NMZTriCdMrIGV7xZly0c4WM1sxoz5QggHK6p4Y8d vRotE+gmsqh4f47HiRmgwoSHdC3N95Emh+G5dp0YwEYwI0XwgVzehW87eqnSC7GqUjHZ qmdWl35IQ9Wlpz2QVLlVsHS6cS0D8EUv+/88ZZELc6ffYenIQJMikalVayywIpjpS1io Eitg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si988503edt.386.2020.09.09.01.47.41; Wed, 09 Sep 2020 01:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730177AbgIIIq4 (ORCPT + 99 others); Wed, 9 Sep 2020 04:46:56 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:49220 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730158AbgIIIqr (ORCPT ); Wed, 9 Sep 2020 04:46:47 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id F21A51C0B87; Wed, 9 Sep 2020 10:46:43 +0200 (CEST) Date: Wed, 9 Sep 2020 10:46:43 +0200 From: Pavel Machek To: Dan Murphy Cc: Gene Chen , jacek.anaszewski@gmail.com, matthias.bgg@gmail.com, linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Subject: Re: [PATCH 1/2] leds: mt6360: Add LED driver for MT6360 Message-ID: <20200909084643.GB10891@amd> References: <1598441840-15226-1-git-send-email-gene.chen.richtek@gmail.com> <1598441840-15226-2-git-send-email-gene.chen.richtek@gmail.com> <1b6e8bf7-fc11-542b-f570-cebb0b6c3442@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pvezYHf7grwyp3Bc" Content-Disposition: inline In-Reply-To: <1b6e8bf7-fc11-542b-f570-cebb0b6c3442@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! >=20 > >@@ -271,6 +271,17 @@ config LEDS_MT6323 > > This option enables support for on-chip LED drivers found on > > Mediatek MT6323 PMIC. =2E..522 lines... > >+static int mt6360_init_isnk_properties(struct mt6360_led *led, struct l= ed_init_data *init_data) > >+{ > >+ struct led_classdev *isnk =3D &led->isnk; > >+ > >+ isnk->max_brightness =3D mt6360_get_isnk_max_level(led->led_no); > This function is called once seems a bit much to have a service function = for > a simple switch case. Please remove code you are not commenting on. That a) reduces bandwidth requirements but more importantly b) makes it easier to find your comments. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --pvezYHf7grwyp3Bc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl9YlnMACgkQMOfwapXb+vLvDgCgi0jys/9Gg6FdVPAtrooeRyXJ TPMAoIHj0ruueSBPPi4OfU/aJK0VNp3O =kq07 -----END PGP SIGNATURE----- --pvezYHf7grwyp3Bc--