Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp295958pxu; Wed, 25 Nov 2020 03:30:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAnJz/TZSKom8GMlHa1rdUiuGrxMxPIpPs3S9NMFCsCS5iD3NFdEbmxPpzZkr5OJ+mLerz X-Received: by 2002:a05:6402:1818:: with SMTP id g24mr3050295edy.313.1606303832292; Wed, 25 Nov 2020 03:30:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606303832; cv=none; d=google.com; s=arc-20160816; b=x2dxfFwceY7cKkQa5eiTdbR+w7XQnuv0gBCqqOBIGYUK96lHDBt5W3FC4/GVa1jo8K 66hEXMzLxpC7thfPTz3fzKBzjQzPJUZy3JSzn93aQMUk59/nsKaavtsdQ8H38ioP9bq0 In9+8YC+UY78uxiM1umDlYP9pqEgcBRooxxSO9Vb+M7dCGyQTqHWcLD3hNBwllkPwJWc UXViNWBhuF2CI2I7kqMgG/eFal11scjvYwQNn6Q0E/GYWiS2OZuYKejjFhdGn7C3zmX7 egW/CTjQNVXHTuil9vsU3503vNOxjmGPP0dhm6211aLRDIugmpUqAhdRvOtyJVvPtUEG r8Sw== 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=gnINstJEB3PqVwAVEltxBNXMszhpmCjxjUJiBkHVfsY=; b=QFEWzBxVY1m+eTPCNqOUQzzbgDOq2qEEXp/RFf9qHROs7QH7QdeaYMWB2hrmL99ISP ex4uNxnRoSANuM2ijyrauqK0/4UJteJ5HoOY1j3cUIEFJfDb08Q3/ft6yhjd11qrZK/3 lkTkKuf77+5JNpiwKFManhPiGheXM2Sft5quXZukmp1V/h/mUzQnxrACc93/S72KUrra /B0gZMW+5P8wMI5DQp1KizLCdslQsttEYg9yHSwcOKGmY0EzFSZ/WM55pJfuXqMsVmTC levrWPfDbfZlOkAPi604hiCidVWEKHAFRuKiobssL6GIwQeaoTkcU5j1AdvurIxqEOsd TrEw== 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 s24si1039188edw.151.2020.11.25.03.30.08; Wed, 25 Nov 2020 03:30:32 -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 S1728963AbgKYL0C (ORCPT + 99 others); Wed, 25 Nov 2020 06:26:02 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:39604 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727718AbgKYL0C (ORCPT ); Wed, 25 Nov 2020 06:26:02 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4720C1C0B7D; Wed, 25 Nov 2020 12:26:00 +0100 (CET) Date: Wed, 25 Nov 2020 12:25:59 +0100 From: Pavel Machek To: Dan Murphy Cc: Marek Behun , Gabriel David , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] leds: lm3697: Rename struct into more appropriate name Message-ID: <20201125112559.GD29328@amd> References: <20201010185700.GA8218@amd> <20201010235045.4ba8cf51@blackhole.sk> <3f83953a-57ba-1fdc-f3ae-d3679e05474d@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline In-Reply-To: <3f83953a-57ba-1fdc-f3ae-d3679e05474d@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --NtwzykIc2mflq5ck Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > From the perspective of Linux you see the two control banks as 2 LED > >class devices (because you are setting brightness for control banks, > >not for the LED strips). >=20 > The way Marek explains it is correct and the way I wrote the driver > intially.=A0 There is no direct control of the LEDs only controlling the 2 > banks. >=20 > As an example a device can put LED string 1 and 2 on a single bank to > control the backlight for a display and put LED string 3 on a different b= ank > to control the backlight of a keyboard. Like in the Droid and Droid 4 > devices.=A0 2 strings illuminate the display backlight and 1 string > illuminates the keyboard the display backlight can have a independent > brightness then the keyboard. >=20 > To me the name of the structure does not impose any functional changes ju= st > semantic changes.=A0 And it just makes it a bit more difficult to back po= rt > functional fixes as this patch would be made mandatory for cherry picking= =2E=A0 > But I do not get many requests to back port this driver so it maybe be a > moot point. Ok, sorry for the confusion, and .. I believe the code can stay as-is. Bank is single entity Linux controls, and it does not need to know how many pins are really controlled on the hardware level. It will be confusing one way or another. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --NtwzykIc2mflq5ck Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl++P0cACgkQMOfwapXb+vIj6QCgjpcej4tuXeZEJMnlnQMtFLGp xlgAoICqo8Vtn7a0gLImixk0DD3GMSyW =/agp -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck--