Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1220362ybl; Fri, 16 Aug 2019 10:54:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc7Wq+kwx8KwKNTiTQeeZ6Q7A4dPR60K7AzPmFE8qk7LRW1bRoyKq4YJR1loVxEQopwVh0 X-Received: by 2002:a62:1d8f:: with SMTP id d137mr12204781pfd.207.1565978054520; Fri, 16 Aug 2019 10:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565978054; cv=none; d=google.com; s=arc-20160816; b=Qed9qiIh9swK7sM0mW4TZzTwk6uc0JhrNL8fjrwDSvh6SMyTbgH1I/L5aKxKJY9Esl cAgH57nhm2MMYZdRQFFEt5IbpAkh5cJZTmnMdVjN/B2wiLkbuwmrT/RCTEsAwd2N/jK4 WyhOvvNTk4Ro/COwuiEc+nWhGc/yGWHz85cJ4eTeD9lET5+SJVUeyDUxJ0KkYJoiA/8C F1poWtGjykxmWpA5ralUb/2qcXMONGbx2PvQk0OhELNwMSjB26ruBo3gzNQ9UMfR2/59 dIKaY73aK5MpDDiwtORPpDC3JqleMBZwQn+BNwcxhH7ImtkkFpbjHcJw1wPuhDapt5fV RuLQ== 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:dkim-signature; bh=qj+FqdPY7E+evYAajO1pGkO3Jxq482Q+PVPBi3aWl84=; b=N37FovJUY50tMQyXargap8HzQBi4wtWjlsoZaUqCQI5jqDsLhWeAHW9UYZlQTB7ilI /Or++oiZShqteq4T7Y9i6U66tu8AGvBgnL85iGs84jHeIvzm4wwvoVyfWiPEl5GDrVEu 3cIcGP09QLYIETNJADt1qr/ueREndEW/AA/UCoeTZRlsy+iAt8E81Jpo4Z/7s52BTtgg l34umaBED5aeMnZj7UGZQ1IBUhau8avira1ssUxGosOf9egMrPqADOdXDP7kptjvK1gn kttJQgKOBycB1B/uQ3SV1zJhf+vDBVluCuoohy1jmMOqDI4Wnlp/2jh/tfX/Bci7ENQJ KMyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dzBCnLLW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25si4740647pfn.56.2019.08.16.10.53.58; Fri, 16 Aug 2019 10:54:14 -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; dkim=pass header.i=@chromium.org header.s=google header.b=dzBCnLLW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727555AbfHPRxV (ORCPT + 99 others); Fri, 16 Aug 2019 13:53:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39435 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbfHPRxU (ORCPT ); Fri, 16 Aug 2019 13:53:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id u17so3294662pgi.6 for ; Fri, 16 Aug 2019 10:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qj+FqdPY7E+evYAajO1pGkO3Jxq482Q+PVPBi3aWl84=; b=dzBCnLLWXkS4Ws52BWzTOeqaC5aRUz5q2pg8F0eAd5SdnxF3jZGdMmM4k7+pbM4cIy HFdX+vc2Ll7YBxNtOVC6nR4VfPlZbR1gPHuO2FCfrh49LSO6E+8jtbOv1VsY/io0Q/qF Tuh6jQsfKZuGDOeVmqR2t4wOkS67aa0Q91mLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qj+FqdPY7E+evYAajO1pGkO3Jxq482Q+PVPBi3aWl84=; b=bF7uBUGRcjWEoUiURY3xNsWedCLcK2WpAjTpvn8CKNnKiqyAS9zVcqEg3Z2gxz0BDz 5uJM8qnseuRlGswRrFtXdFU2ujDHfRkaCTHz9BuoMnFCsc1CZSuEEtYsd+HRlHm82HMQ jz2BXU3cmWoIT71n6hS9aymXP1QJXmsB3Kwn34o7WXBJvOFphEDLQ4kgboba72DtUWSQ bEgISjxbTmXQVduR+zTK4EoMjfI2YQC7bE8YUeAxixiC0/jcUqfuysoSFCm2+Cls3RM2 nRf53XAFUCNdppVEry9/KBm89EJ5chJDwjuXNm0zayq5ox0OcpTk66ak/FU3aM+qfN/W GgEg== X-Gm-Message-State: APjAAAVi/f6E1YKUkJHYZZRumFq7SPbqU7SfTZL5z5Hzer++hnHeQ43F fw6MlTLU/K/qnR0AxWXGvSQzCg== X-Received: by 2002:a63:1046:: with SMTP id 6mr9033102pgq.111.1565978000238; Fri, 16 Aug 2019 10:53:20 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id g10sm7048716pfb.95.2019.08.16.10.53.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Aug 2019 10:53:19 -0700 (PDT) Date: Fri, 16 Aug 2019 10:53:17 -0700 From: Matthias Kaehlcke To: Daniel Thompson Cc: 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 , Pavel Machek , Jacek Anaszewski Subject: Re: [PATCH v3 2/4] backlight: Expose brightness curve type through sysfs Message-ID: <20190816175317.GU250418@google.com> References: <20190709190007.91260-1-mka@chromium.org> <20190709190007.91260-3-mka@chromium.org> <20190807201528.GO250418@google.com> <510f6d8a-71a0-fa6e-33ea-c4a4bfa96607@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <510f6d8a-71a0-fa6e-33ea-c4a4bfa96607@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 04:54:18PM +0100, Daniel Thompson wrote: > On 07/08/2019 21:15, Matthias Kaehlcke wrote: > > On Tue, Jul 09, 2019 at 12:00:05PM -0700, Matthias Kaehlcke wrote: > > > Backlight brightness curves can have different shapes. The two main > > > types are linear and non-linear curves. The human eye doesn't > > > perceive linearly increasing/decreasing brightness as linear (see > > > also 88ba95bedb79 "backlight: pwm_bl: Compute brightness of LED > > > linearly to human eye"), hence many backlights use non-linear (often > > > logarithmic) brightness curves. The type of curve currently is opaque > > > to userspace, so userspace often uses more or less reliable heuristics > > > (like the number of brightness levels) to decide whether to treat a > > > backlight device as linear or non-linear. > > > > > > Export the type of the brightness curve via the new sysfs attribute > > > 'scale'. The value of the attribute can be 'linear', 'non-linear' or > > > 'unknown'. For devices that don't provide information about the scale > > > of their brightness curve the value of the 'scale' attribute is 'unknown'. > > > > > > Signed-off-by: Matthias Kaehlcke > > > > Daniel (et al): do you have any more comments on this patch/series or > > is it ready to land? > > I decided to leave it for a long while for others to review since I'm still > a tiny bit uneasy about the linear/non-linear terminology. > > However that's my only concern, its fairly minor and I've dragged by feet > for more then long enough, so: > Reviewed-by: Daniel Thompson Thanks! If you or someone else has another suggestion for the terminology that we can all agree on I'm happy to change it.