Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2502742ybi; Mon, 17 Jun 2019 06:03:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7N+14TWML/E1aHHtZJSBfdj1bgMmyd/THgsB54RKdXJ4pDjLP4V+hdLxL5POR38C2RRbb X-Received: by 2002:a63:df46:: with SMTP id h6mr4800415pgj.181.1560776631520; Mon, 17 Jun 2019 06:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560776631; cv=none; d=google.com; s=arc-20160816; b=ucR03wRIHTCDMXjYtfpXWwJP6MPl5T2w3ERtQVXL8MxnHRULaD5uopBzCqUF64O2/g BXL4eeaSYv++FO5fcrxm9hMOLt/lcvQwPE3nLmFXSo4dm9uX4Rz0LwBYJxrR7crmOTMB 2PJ/8b+9a/jI2KJPqTa5k8fona9cT8TgfZMq1/iM7t3U52MkLaMj9KEvCaBwX8p0gBBX oJoJ55DvphuLX3ut2yf7oPZI1AfOyTHG7XqRSJUZdVZm8OwqQMtJ+c2T9WaUPmTU/y8d 3HUL/1vpILPcDDL2ysYoKv4jaXyxE90XsApc2Y6z6G+l+SIPH/Jbu2Hci4vQw4JQblWF tftA== 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=YcuBvJEQFEeUYXR1T0YN2kCULMFjpV+w7RSNXZJ1fcU=; b=gLqQOcPbFagwJ3s9sjG9Ye/rFEQPocmfyu/WBFeSkvA3UraP+eXnjNK41iBKAPFdeL LtcDhTnzFPVj2LV3FZkumF5445VZbzUVyTA6zfMeUt6iCNqMtAFaUlbqK0vuP8dVNH0U mNZk7ON1lROh3rRFM3DMUQ9ZlZxkgQ3J/KGJwohZuJqHXd5tBaA80Klnyi1enz1wvQbj h6lZ7/GZF6fU1X4Sk68PNJH4HtJFLFgxIFz0OEMvL+Kv9mx6N/a5w4I/q955gPtnxamT NstRn8hZU5TPIcytLSOUAijYr8oLR4Qy3mO9dMskbEX6GZA7vfoIAAGu37zHWXVjkVpr Je9Q== 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 e66si10448559pfh.88.2019.06.17.06.03.34; Mon, 17 Jun 2019 06:03:51 -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 S1727921AbfFQNBz (ORCPT + 99 others); Mon, 17 Jun 2019 09:01:55 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:45909 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbfFQNBz (ORCPT ); Mon, 17 Jun 2019 09:01:55 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E7E9680258; Mon, 17 Jun 2019 15:01:40 +0200 (CEST) Date: Mon, 17 Jun 2019 15:01:51 +0200 From: Pavel Machek To: Matthias Kaehlcke Cc: Daniel Thompson , Brian Norris , Enric Balletbo i Serra , Doug Anderson , Rob Herring , Jingoo Han , Richard Purdie , Jacek Anaszewski , Guenter Roeck , Lee Jones , Alexandru Stan , linux-leds@vger.kernel.org, devicetree , Linux Kernel , kernel@collabora.com Subject: Re: [PATCH v3 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye. Message-ID: <20190617130150.GA21113@amd> References: <20180208113032.27810-1-enric.balletbo@collabora.com> <20180208113032.27810-4-enric.balletbo@collabora.com> <20190607220947.GR40515@google.com> <20190608210226.GB2359@xo-6d-61-c0.localdomain> <20190610205233.GB137143@google.com> <20190611104913.egsbwcedshjdy3m5@holly.lan> <20190611223019.GH137143@google.com> <20190612110325.xdn3q2aod52oalge@holly.lan> <20190612192642.GK137143@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <20190612192642.GK137143@google.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 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Certainly "linear" (this device will work more or less correctly if the > > userspace applies perceptual curves). Not sure about logarithmic since > > what is actually useful is something that is "perceptually linear" > > (logarithmic is merely a way to approximate that). > >=20 > > I do wonder about a compatible string like most-detailed to > > least-detailed description. This for a PWM with the auto-generated > > tables we'd see something like: > >=20 > > cie-1991,perceptual,non-linear > >=20 > > For something that is non-linear but we are not sure what its tables are > > we can offer just "non-linear". >=20 > Thanks for the feedback! >=20 > It seems clear that we want a string for the added flexibility. I can > work on a patch with the compatible string like description you > suggested and we can discuss in the review if we want to go with that > or prefer something else. Compatible-like string seems overly complicated. > > Instead one valid value for the sysfs should be "unknown" and this be > > the default for drivers we have not analysed (this also makes it easy to > > introduce change here). >=20 > An "unknown" value sounds good, it allows userspace to just do what it > did/would hace done before this attribute existed. What about simply not presenting the attribute when we don't have the information? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0Hjz4ACgkQMOfwapXb+vJICwCgw2oDqZxKwg0bd8+7Xh6ZsIX9 /MsAn2woctEoRe0BmsGCFOw5p1KQMS68 =vCQf -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--