Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3021399ybd; Fri, 28 Jun 2019 01:19:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkLbl5fzyHEBkazCBsLjaFIgygew4sEf/BNVikNy1RkUQOOzuOsX9KuMHsn+j9BHdyLnoM X-Received: by 2002:a65:5b43:: with SMTP id y3mr8048566pgr.346.1561709999449; Fri, 28 Jun 2019 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561709999; cv=none; d=google.com; s=arc-20160816; b=g/Yr7A5a9K8GPZH7/bDg5caG14oaSogvwUZ6JxXfjFfbmYOtUU1JtDdT5dzdMKW0zw fX/cUW33H4iSrFedfgeHPIGpYGVBZlGG/FfrGkk2M8Ts3Do9b5WVWF0De3MHWyHUATZE X2RyjD6E3AB+ab1wsRHS6mynPpX+QUIb/Xh3nFy+vN/WMdL2Cy/jw+FNK6scErNJonfY U3lGUGjVAhQ+9SVimYLQORsyDxz1RzwPUeDd1vBWonpzN9HqeflI9MJv5UCAd58CJZ4n /DzJDdxKiFDAH4M9SyYHgIYqlEdXKPsHXqGsTMkAPk8Qs+YOZ7N2LxyRirjVR6bOJRO9 NAXA== 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=Sj2eFdRvrGP0aQOs+uKoAQn5r67zktz+LWTSj4RZi+M=; b=d09r8iYM7QoumC27pGHP0rrSGKNUNAumEGZ3fZAnFJ0ClQDEWOvPtEddV+cs6AbwP2 4ALZkXwex/XxpFOJRXF8O4g8BisHhFjhWnO5WDs80bcm4TrGngRu0uPiFfrIaHjbcysf ryis6jCqNcsQWcl03doRZrzPqWnfztdggJ3fs3JE/ZKirprBcUHwX1OSgVklREzju0Yc lWJiHlbIXfHXpAqFDIIJhdRNW337+wGkLsAjn+oazWl7g6kiRrwZ5C4QfituQhDg3/6N Ig4bJy1WBjnpfNYheqzpSAaNuJfXgigqnHDq+t9phdg9uhCGRMFzfXHQivVZedXdwoxp 2a6g== 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 v18si1466715ply.276.2019.06.28.01.19.43; Fri, 28 Jun 2019 01:19:59 -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 S1726695AbfF1ISJ (ORCPT + 99 others); Fri, 28 Jun 2019 04:18:09 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48101 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbfF1ISJ (ORCPT ); Fri, 28 Jun 2019 04:18:09 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 713FE8063E; Fri, 28 Jun 2019 10:17:55 +0200 (CEST) Date: Fri, 28 Jun 2019 10:18:06 +0200 From: Pavel Machek To: Daniel Thompson Cc: Matthias Kaehlcke , Thierry Reding , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , linux-pwm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Enric Balletbo i Serra , Douglas Anderson , Brian Norris , Jacek Anaszewski Subject: Re: [PATCH v2 4/4] backlight: pwm_bl: Set scale type for brightness curves specified in the DT Message-ID: <20190628081806.GA31375@amd> References: <20190624203114.93277-1-mka@chromium.org> <20190624203114.93277-5-mka@chromium.org> <20190626145617.GB22348@xo-6d-61-c0.localdomain> <20190628075516.dwev7fxz7kmox2i2@holly.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20190628075516.dwev7fxz7kmox2i2@holly.lan> 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 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-06-28 08:55:16, Daniel Thompson wrote: > On Wed, Jun 26, 2019 at 04:56:18PM +0200, Pavel Machek wrote: > > On Mon 2019-06-24 13:31:13, Matthias Kaehlcke wrote: > > > Check if a brightness curve specified in the device tree is linear or > > > not and set the corresponding property accordingly. This makes the > > > scale type available to userspace via the 'scale' sysfs attribute. > > >=20 > > > To determine if a curve is linear it is compared to a interpolated li= near > > > curve between min and max brightness. The curve is considered linear = if > > > no value deviates more than +/-5% of ${brightness_range} from their > > > interpolated value. > >=20 > > I don't think this works. Some hardware does takes brightness in percep= tual units, > > converting it in the LED controller. >=20 > This check is exclusive to PWM backlights so I'd like to double check > that you are thinking specifically of hardware that takes it's signal > from the PWM and works in perceptual units? I missed that details. Taking PWM input then converting it to perceptual units would indeed be strange. Sorry, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --gKMricLos+KVdGMg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0VzT4ACgkQMOfwapXb+vJHvwCfXWJZfJ+NpPdPg9PEDds9PM6A 2PkAoKvMuJ+sLPxMlK+cBeBefsVNKEOi =vu5D -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--