Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3309176ybp; Sun, 13 Oct 2019 04:47:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQ8lwL2ujCu03ej5Z6U+xYKJHdfNd7ncbjSHaNwOcs05k4IgSot69brveH2J+ZsR6H9p0y X-Received: by 2002:a17:906:1e55:: with SMTP id i21mr24031047ejj.47.1570967246859; Sun, 13 Oct 2019 04:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570967246; cv=none; d=google.com; s=arc-20160816; b=wH8j9rqkr4o9cu9pXiKXz4Hgu4HdVBxaOWJP7k18yg/HnejV6bGqOC/qqsyMi4EQiv Sbo9MvyOGVyw3IDfcKj/XfKWl0p2ev9L8i2LrVCR2WWHcRE7RiatFtnacGr1YGmVH7hi qkW7hAcBelneh/v7QNq+SUaaBjcWI53SMpn90bAGTfAY1EtFwU9xuUF4nJ7VBb4eJ6Vy ISrs+qOPs9wdyKGblRhMwx8UO9194X2dWhiNFK15v6e3+IKgQDPU+MDFmolpjAVTr1xq LtG+S3l9jEttUJXBpuDy0kPvgClrhub54MWgrocQUMGs0SKOZ/i/WXAwlTGp9F6VnsO5 WKlg== 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=nYw/HcRJmUl4Y67USOfotCa4oXisIH0yftgBLyLRaXI=; b=aM19HBLfcARDRU4VF1e36pYnnRApTVNuFd1Z1Hy2ix4DOmgqpL2CMw09H0VYr+x4Uf BGa0TDsfehXS8DBB6Xn3+Xi9fZHFfYhdWTcPk+UWJZNF/0nr2PhwBwOmSi06d7uwhciC z6gqea2/uAN15C6K2UypoenJTRtmN2Cl5gwZC+t8MUouWiTQ4X9qjLJWui7hNpVi2xfX rexjXyYC34wq73Xbs6NQZljZWu/8aGB5CdFbe9mlHZOJJ5BBHJ+xcsUnC86Mv1rpSc/A Kal2/1exgo5POZyW4LQIeAKLpoZQlu8A7G0o/0aDIdVfwWvNTofcVAnGAPgVnpWTSOvS bgYA== 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 a33si10268066edf.121.2019.10.13.04.47.03; Sun, 13 Oct 2019 04:47:26 -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 S1729076AbfJMLpY (ORCPT + 99 others); Sun, 13 Oct 2019 07:45:24 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41457 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728973AbfJMLpX (ORCPT ); Sun, 13 Oct 2019 07:45:23 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7D4B980249; Sun, 13 Oct 2019 13:45:06 +0200 (CEST) Date: Sun, 13 Oct 2019 13:45:08 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Jean-Jacques Hiblot , dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn Subject: Re: [PATCH] leds: tlc591xx: update the maximum brightness Message-ID: <20191013114508.GI5653@amd> References: <20190923100250.22326-1-jjhiblot@ti.com> <91864098-a6e8-e275-4b07-e4bb15469f78@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="81JctsDUVPekGcy+" Content-Disposition: inline In-Reply-To: <91864098-a6e8-e275-4b07-e4bb15469f78@gmail.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 --81JctsDUVPekGcy+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > @@ -112,11 +113,11 @@ tlc591xx_brightness_set(struct led_classdev *led_= cdev, > > struct tlc591xx_priv *priv =3D led->priv; > > int err; > > =20 > > - switch (brightness) { > > + switch ((int)brightness) { > > case 0: Can we get a rid of the cast here? Do we need to move away from the enum for the brightness? > Added tag: >=20 > Fixes: e370d010a5fe ("leds: tlc591xx: Driver for the TI 8/16 Channel i2c > LED driver") >=20 > and applied to the for-5.5 branch. Actually, careful with the Fixes tag. -stable people will want to apply it, and it may not be a good idea in this case. Maximum brightness of 256 is pretty unusual, so I'd call this "a bit risky". Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --81JctsDUVPekGcy+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl2jDkQACgkQMOfwapXb+vJBCQCgvqf2j9gKfJomgk6Yn1BeZYjo XoYAoJFLFe+eYjrzhrdnCMOo+P0rglOz =j3TJ -----END PGP SIGNATURE----- --81JctsDUVPekGcy+--