Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4650075ybb; Tue, 24 Mar 2020 02:43:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTF1sJEUsGEiOhVnb7Tt9bo3IOzEpySJR6Uu6FSFylSQQSGzpgGlMaWgZQNxWnPAzgNfoE X-Received: by 2002:aca:b602:: with SMTP id g2mr2663306oif.82.1585043012089; Tue, 24 Mar 2020 02:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585043012; cv=none; d=google.com; s=arc-20160816; b=LmI7WR2BTDM5dQcL1GCFYDsXPeFfDA3g9+8B3KLP2wf4e/xhX1UiSHCZVuJtUqT9/N J0Gm+MSEUPcYeKuqcsY2p1T3T22/HRtJgnarB4OK2wvgHoHCZWpT4xDo6sJX4LRGQbIS tmhyaJkKCwkffwuosavKYdxW8RmGp15RcHS0nk6MqJsUuXZlGjLgJUj8bPo0S83LfHck ypP0SW/4GaFKOTDMb9tsSyCoR+466+p+i5sK/dcs2MB602d8YmcgIUt+b+HOP72U8s9/ VmeJCevh/mQbC5oLFfn1HnGljCcmZRqgjjbm8Ygmyki0PGKti18bO6FA9k0B0VVuCTB5 bvQg== 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=d5CBbBURHPsHEiEe97FAFAgk16bAQyLxzU4ehmVG/tY=; b=PTFe3aXr2rZrprQ9vCAdLoN7e6F+h7vjTr4hXV6Zk5yQYer7Vu7+Q9OxwIW9rM1ryn UGL9El0Uv2lMKgKbgRJ23ESjKxV1UadnaRaezCnjmspW/g6AJjyiNqdCWzkj51WGQbS2 uW4upSuGPeVHbBeu1xFWkqju9FaVSKDmJh1fS52GzdUj6WWDA2Oq3XsvEbi9vbmwxXic nlTAT13jBK0V7lp7R/5ZamYRL0tzvVt/SIX1v50/J8bO6GzMEfdpXE3Rhx8iYK+fEX0q 1o8CsjmZhmPhQ1f90NXyZ6ZgfQCSwz2Q0QWfQdRgiHcGcSZx8YGyTKdMp0+Mho+QEnAR kFaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si92695otk.128.2020.03.24.02.43.19; Tue, 24 Mar 2020 02:43:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727441AbgCXJm1 (ORCPT + 99 others); Tue, 24 Mar 2020 05:42:27 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:44776 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbgCXJm1 (ORCPT ); Tue, 24 Mar 2020 05:42:27 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 574CA1C0343; Tue, 24 Mar 2020 10:42:25 +0100 (CET) Date: Tue, 24 Mar 2020 10:42:22 +0100 From: Pavel Machek To: Nicolas Belin Cc: linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, dmurphy@ti.com, devicetree@vger.kernel.org, baylibre-upstreaming@groups.io Subject: Re: [PATCH v3 3/3] drivers: leds: add support for apa102c leds Message-ID: <20200324094222.GA15096@amd> References: <1583502010-16210-1-git-send-email-nbelin@baylibre.com> <1583502010-16210-4-git-send-email-nbelin@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <1583502010-16210-4-git-send-email-nbelin@baylibre.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 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2020-03-06 14:40:10, Nicolas Belin wrote: > Initilial commit in order to support the apa102c RGB leds. The Initial > RGB and global brightness management is done by creating 4 leds > from the Led Framework per apa102c led. >=20 > + > + /* setting a color_id value for each of the 4 components of the > + * apa102c RGB led. The first component is the global brightness > + * of the led and thus has no color. The order of the colors > + * after the global brightness is then blue, green and red > + * in that order. It corresponds to the order in which the > + * values are sent using spi > + */ > + rgb_led->component[0].color_id =3D -1; //no color Please follow codingstyle on comment style and avoid // 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 --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl551f4ACgkQMOfwapXb+vKNAACdHyKBsVW3v6cli5ZVCgheH7ky D3kAnA22fu4Dv4StJjio2r7Ne6PEyWkM =IEwh -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--