Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10891154ybi; Thu, 25 Jul 2019 06:38:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSAJYnvTMzCv6E/P1e8ebh7RevX5YDoE3e0rRll6LUM0pVJ/GBwEf9FRc/2rXRzz22h52X X-Received: by 2002:a62:ac1a:: with SMTP id v26mr17058814pfe.184.1564061909000; Thu, 25 Jul 2019 06:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564061908; cv=none; d=google.com; s=arc-20160816; b=IXMbTreVAMzSI2BvI2louDqUbWjnrjncB9sCtZerBxj/mQtsJyiK3RRmBxU6qC+K5E h2Q+tLK7CqMolnNVlXZWYC9JBDTuHv3QgLeLSkNIn4cMi4+RSsnawOVJ9Goqi2OvmwVg J8VywrDxQwqnTDtYutMcVEOY5K74Z1agLb6F3FUjOVl7s51ELWUJM5W7Yja7w5AO9okj D7+CAIYBNG0TeAscVDqDpPuSigfYBM96njjnFRSTInz8aDIktk2eA+VzqatZaUVLkNKa ZsGVqEBuFZ9V+EqVt0nPLONxCf2DQEtNjNNpuW9GY6y7A5lPXF9CsjG2ZtUtAPCo1969 Gt8A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QF+7Jm8pJkonsuJf5bcYYdklp7SuR7E7WLX/qpmLIMY=; b=0kmucx5pZoOv2jlq1awUcrOW/v6nDCizs7CEaxlZf4XLpUWguyj89wbzUn2/Jxb1Ub 0zQ7JZLa7KoPzl6jC5jnx4j3E22q1oTmURFI1psyLAMLinf2pdQpSVw4EmScavM/sHNQ 5pZIGlZGfa22czSMGDWGR+yakCAAZ2uwjtLLSp0jGucoifh3Zc4QDwTjBQip4lbtADiU S1Wy8fUlpSe19+fBHyrDOL6X1PNyE+SokDdy0y4nZ2n3XRGlhB6gqP3YnTRwijzPcdTk /LXG0GXAWMH6QUZLDWQnwWJLMv1dAKD3f/Pjlzl82YKmNuvbN1GJJgBW2S2NjbMT3AlH ItAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JPcCwXhG; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w184si21126649pgd.394.2019.07.25.06.38.14; Thu, 25 Jul 2019 06:38:28 -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=@linaro.org header.s=google header.b=JPcCwXhG; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391702AbfGYLQB (ORCPT + 99 others); Thu, 25 Jul 2019 07:16:01 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39792 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391692AbfGYLQA (ORCPT ); Thu, 25 Jul 2019 07:16:00 -0400 Received: by mail-wm1-f66.google.com with SMTP id u25so34007285wmc.4 for ; Thu, 25 Jul 2019 04:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=QF+7Jm8pJkonsuJf5bcYYdklp7SuR7E7WLX/qpmLIMY=; b=JPcCwXhG2xYcAxickSomrOJkvgTBB5DjGLN3ImW41oQin65O47uBJez5y6QHqPi4CR R7p/PX3cBDvjHCCXcAM73DTDSepGGTQQ2CN2Mn3M7v7z93rwWzHrKJCmJY9wOEvBDKq2 NpiyRbMo36jxYlVEKnTElXwIE0Y6sqOOKYRQcc+CbQLpWYGGyF1vhlYKPIneuigp7lER g/uEtUrvKDd1sm7FXHFVMcoPSdQ6TQYr3xRhUnqsEI0ABKQ9ZgKAV5U2smgQQPt2O5M5 Inroyadx6ibMupV0tHIR/8R1NUETYkUXGcS33jsQ20wFt42RB7EmtkbcaAmdRw7W/QHJ 31MA== 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:content-transfer-encoding :in-reply-to:user-agent; bh=QF+7Jm8pJkonsuJf5bcYYdklp7SuR7E7WLX/qpmLIMY=; b=uV08aZbslFCL+Yh1hlZlacWY/RMrAU8YxBlXedBphaSEgXINqjMDaCvqz2Vh3yyFzd ReKr6EGmF+M8PB4CxgjX23+BQShZhl4ZByZn10PY6tL37IDrW2oesdqduYVOrc2pZ/kQ YcFpoROLIdjlR7kF5gR8dgPnlLzhZh4THnZBqLCpJ1/uyVz1iwWaI3kNXBopujL2ZhIF Bm0yvy33NqlmPKAb0vtC66k7+1MSXurXki8Oqd+sPdlK8TxzhEOUrs78fQCiuXos74EL utSu+I6k1nDTAJ51Hco/9r3JWWT9uspnvkvNuU8moEJ0WxlD1fPW/Cm7fUW5nlA8FMjf pDpQ== X-Gm-Message-State: APjAAAXR915A/H3r+xLyLGVbohlAw6ZqbeDO3rUktgOKTkjYWuFCworT fLBekfRuwYaVT7NINQ0CJ1ezaA== X-Received: by 2002:a1c:3c04:: with SMTP id j4mr74612867wma.37.1564053358224; Thu, 25 Jul 2019 04:15:58 -0700 (PDT) Received: from dell ([2.27.35.164]) by smtp.gmail.com with ESMTPSA id y16sm100988574wrg.85.2019.07.25.04.15.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 04:15:57 -0700 (PDT) Date: Thu, 25 Jul 2019 12:15:41 +0100 From: Lee Jones To: Matthias Kaehlcke Cc: Thierry Reding , Daniel Thompson , 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 0/4] backlight: Expose brightness curve type through sysfs Message-ID: <20190725111541.GA23883@dell> References: <20190709190007.91260-1-mka@chromium.org> <20190722235926.GA250418@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190722235926.GA250418@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Jul 2019, Matthias Kaehlcke wrote: > On Tue, Jul 09, 2019 at 12:00:03PM -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 is currently opaque > > to userspace, so userspace often relies on 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 a new sysfs attribute. > > > > Matthias Kaehlcke (4): > > MAINTAINERS: Add entry for stable backlight sysfs ABI documentation > > backlight: Expose brightness curve type through sysfs > > backlight: pwm_bl: Set scale type for CIE 1931 curves > > backlight: pwm_bl: Set scale type for brightness curves specified in > > the DT > > > > .../ABI/testing/sysfs-class-backlight | 26 ++++++++++++++ > > MAINTAINERS | 2 ++ > > drivers/video/backlight/backlight.c | 19 ++++++++++ > > drivers/video/backlight/pwm_bl.c | 35 ++++++++++++++++++- > > include/linux/backlight.h | 8 +++++ > > 5 files changed, 89 insertions(+), 1 deletion(-) > > create mode 100644 Documentation/ABI/testing/sysfs-class-backlight > > ping, any comments on v3? Looks like PATCH 2/4 still needs seeing to. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog