Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7924267pxb; Fri, 19 Feb 2021 02:58:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHdPDhOYl5mUkEznQqPKXUGuUgbUnaEnHOxi7Q68XjerNJjQUvEdq9B9z0tbP0Vyt3+WkU X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr8366950ejk.361.1613732310689; Fri, 19 Feb 2021 02:58:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613732310; cv=none; d=google.com; s=arc-20160816; b=C4lIqL9/nOeYfiWPQRdxU1VFXlZax1aFDywpnHzp0iwvTY3AgpIKbqN/ihnmISvqiK po9831K/fwp80FKV5SWKcDbwbnMQ3wnoS8gIbZGAmXxcELMTgs0pAwbai94Wu/n8JNHf 5wnWh1DSPX16UlOoeZeODprFJ/9rMbxH2cGRsv9E0ODBW7ux89QA4yZCr9SPeguosQ+A y/Qyy/l+12FxDXQlsVNbLQFSl93XjcW2iVeAB6z0KUVMygjmfQiJHNt5SewVDG0yWGgt KL7YIzaBNzecoSyV/La3oCIWEuPgUlKw6ppMGii/rY0uEohe/k6+856LMUrkEdTNSnJA jppQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6wxoybykwXiiK1ioRMtwUurUH84ytRb1j685QBOovdg=; b=PjT7rF+j7ZI4CwIf1aClJnaswpLbuyoaaIBsul8AujeZ76RWy9R/AASadxfKEaXFpi j+fzwUfa0RekIlASifln+3yhLkwsVG40+i/RhvOSey4DQEkTGhQPtGeCUZxoewB4y1wK QG3Zb+BqO3vQaRAV58gtWuRvJRco5ROrYqd3jc2SY2NDIXbDGhIBdxmyA6Cx/Ia5xF7C IOXY9dr1HxPoSUh4o/IW6uwG+8WOsGj+2ZLCjAzumRxwKlNiJC9axnNJQdpxTwP5KaZP dGaBhA81MV/v+OTHgm93zvUBjQ65wU/UnKxsSIsc5D6MThkScwClvEOnySL1TVxu96rd eEIw== 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 ca25si1745890ejb.9.2021.02.19.02.58.03; Fri, 19 Feb 2021 02:58:30 -0800 (PST) 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 S230160AbhBSK4d (ORCPT + 99 others); Fri, 19 Feb 2021 05:56:33 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:47370 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbhBSKyC (ORCPT ); Fri, 19 Feb 2021 05:54:02 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 2AAE61C0B8B; Fri, 19 Feb 2021 11:53:04 +0100 (CET) Date: Fri, 19 Feb 2021 11:53:03 +0100 From: Pavel Machek To: Gene Chen Cc: jacek.anaszewski@gmail.com, robh+dt@kernel.org, matthias.bgg@gmail.com, dmurphy@ti.com, linux-leds@vger.kernel.org, devicetree@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 v13 5/5] leds: mt6360: Add LED driver for MT6360 Message-ID: <20210219105303.GD19207@duo.ucw.cz> References: <1608547554-6602-1-git-send-email-gene.chen.richtek@gmail.com> <1608547554-6602-6-git-send-email-gene.chen.richtek@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Km1U/tdNT/EmXiR1" Content-Disposition: inline In-Reply-To: <1608547554-6602-6-git-send-email-gene.chen.richtek@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Km1U/tdNT/EmXiR1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Gene Chen >=20 > Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, > 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for > moonlight LED. What kind of ninja mutant hardware is this? Can we make this go to drivers/leds/flash? > +static int mt6360_flash_brightness_set(struct led_classdev_flash *fl_cde= v, u32 brightness) > +{ > + /* > + * Due to the current spike when turning on flash, let brightness to be= kept by framework. > + * This empty function is used to prevent led_classdev_flash register o= ps check failure. > + */ Please stick to 80 columns. > +static int mt6360_init_common_properties(struct mt6360_led *led, struct = led_init_data *init_data) > +{ > + const char * const states[] =3D { "off", "keep", "on" }; No need for space between * and const. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --Km1U/tdNT/EmXiR1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYC+YjwAKCRAw5/Bqldv6 8renAJ0fPFfR2F+/nrLVIeNTWJMfpcfluwCgknpgj5y/xjX67RIYZ+WE4vP0BqA= =J0FT -----END PGP SIGNATURE----- --Km1U/tdNT/EmXiR1--