Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5893021ybh; Wed, 7 Aug 2019 13:16:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyk3elgznOiBCAsY8LWeE2VEYr6g84kryNr342SUHZLAOgMWvcWlbFDuGO0dh8nNUL8SN2g X-Received: by 2002:a17:902:24e:: with SMTP id 72mr9649376plc.65.1565208985629; Wed, 07 Aug 2019 13:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565208985; cv=none; d=google.com; s=arc-20160816; b=KC9nXajmby2q4oMZDmn8D6R8aRErsIoRXybUFnZLzGcpNYrsMCfQWA65rByvCN8Ddp b4R5kbVE+3fTH3PagqcSjjKDtT2EySuDayXuZ3ZlSrxlu3WxL3ULdOskKSNhYLQr6+Xa Ew0HGwfyqoimqW26+3pyUgFhAeVKwMfJGkO/h8kO4mJQZD9VU/CHyd76zkr2JI8zqssa RaVPYUPjdcVFWTKbgrVl6LCiRYcLTjmaYa2inLsTf/BnWbwyqRqZ73LpevpMwN65B6gL TDue4LrzWq/IOAjt5Q9Uukx7MEsrfshajI9IeaoOoNUtHlTCSCGc74on0iLnzkDTFV8H kgCw== 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=RU+mCl+d15cBnmP6BMoJqIyEACy478kUYuCNnNZJiqw=; b=gC0vnrtx1X0gz0wiybAim7v3T8kmlmwTht/oV/P+gB9AmN2YG4q1WgT5C94kN61BDz RVxB1U23gyMg5SIgXAXAmheemma2duoO7FI9ycyYbBvtzqR8jXp2+i2II0xMg87IQffv vNL3egIWz2pm2GZfCMbEUd9d7DIvt6scqnQleoQQTjOuu0Om/Yq9cfY7jfp3kVnYBAvM XH2t87y0U9TAk2d071UHZjT/xUE1l+V92Tn1nvFKoDhaqRRuuEhZrg2ugOttZDXTTqRL XcExKBf1F31t1+KnbnD3HC8YHxNbXQ+bWA2T0TpQPlN3oG1vv0zanBZFumwbtpvlODUT +wqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RwoY0vyV; 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 a17si52637253pff.195.2019.08.07.13.16.09; Wed, 07 Aug 2019 13:16:25 -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=RwoY0vyV; 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 S2389078AbfHGUPe (ORCPT + 99 others); Wed, 7 Aug 2019 16:15:34 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45894 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387985AbfHGUPd (ORCPT ); Wed, 7 Aug 2019 16:15:33 -0400 Received: by mail-pl1-f195.google.com with SMTP id y8so302841plr.12 for ; Wed, 07 Aug 2019 13:15:33 -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=RU+mCl+d15cBnmP6BMoJqIyEACy478kUYuCNnNZJiqw=; b=RwoY0vyVibrSFxjnucYfjp+aWRh2NgUEtgqFYjY8w08e7aiLVLcxKn9RCWHq4b7SJk 8FUeg3lCxv6f5agtWIgt/tatmSYIRk7tQRv0RZf4BH0NKtCUnT5xLuQvXFDvXqH0W8Ui PKtctk6GL5/3C3yNzZ90bt706+jZtcmRS4NJw= 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=RU+mCl+d15cBnmP6BMoJqIyEACy478kUYuCNnNZJiqw=; b=ggaDS07O+x+MvEJ0uz5ZrbZYAP1JENqL/5cauK5B8nU7uMFsxyCwFbT0x479y9eoVr jEsMVXrb8ag+xJUDXYUKjotADfopZgJa5wVNE3Nuf0IAPklprEqLMVvFgrYkg0cvoXPU 5dQolRi8ln1yqzqU7pOAP9npBh4N/iXzryIAT4oOPP0dYP3IQy6w6dSE66a/RAoIypIy 4jmjiCtgF8mLDnkHJj3v3fwRfI47paJoRGJfsURQLIrn8zbg92O93j/iuco1Apfoy9L3 zffNg701s7kRCX5TsUNqCjQGkVjy1wfewZlTRlEKVHLA4Ve5q2L7pUc94u+o9e2SuevH Xcng== X-Gm-Message-State: APjAAAVI0bG3wIhY8+1VtWEdrTxZ93UdvClEev5UvlwI+fbnzMAVdQRS i2mcbZVS0ft4idgwy25LRg7x4w== X-Received: by 2002:a17:902:b582:: with SMTP id a2mr10103527pls.128.1565208933200; Wed, 07 Aug 2019 13:15:33 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id w197sm116457813pfd.41.2019.08.07.13.15.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 13:15:32 -0700 (PDT) Date: Wed, 7 Aug 2019 13:15:28 -0700 From: Matthias Kaehlcke To: Thierry Reding , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz Cc: 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: <20190807201528.GO250418@google.com> References: <20190709190007.91260-1-mka@chromium.org> <20190709190007.91260-3-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190709190007.91260-3-mka@chromium.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 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? Thanks Matthias