Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1100832ybl; Fri, 16 Aug 2019 08:55:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9Fc8mLBibCpvO6Khq025kLyCAWq/poyH1FPTIRpfJJ48X01jb2lUyYY8xyPKGQDI3evDm X-Received: by 2002:a65:608e:: with SMTP id t14mr8382700pgu.373.1565970933686; Fri, 16 Aug 2019 08:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565970933; cv=none; d=google.com; s=arc-20160816; b=AWZLe3qfEPV8sARX74fIEeGQZdm+p2eLDd8EmkBRfR8f+Kec+VZCjpVw8cYbOg1zZs NXkabPsEHn9qZqDvcxhEZL8MQ6cxBR2w7Im5fKJffmgz5UKdbJo368O4pZpbV7KHQiYJ ODp0CQmX4SQx/XiPI9WlLrQxsWnzbN4ARPy0MPX6vxlZT/k5MsQHKt39pEa8I9IVmk3E xefoMgVCUuu9Yyjdb0cmxogOwmcorBozh0A73DY+VKgwpCgkQ44vv41fDRubjcmYlvqB 98+VrMh9X68Pq8ebEEUs6h7Lxeu43Hc2pj1ANpBVImiFbNZNN+tzF91FG+smlgXTZVTu RwcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=rjwwQvzZbTAd0PumZ0fpI2ighfSvLNEfTeslgBS5o3c=; b=DX2FwRjpXd40VeeX9JE5tyOdOqL4RYuDU8k4LdEgUPFp8H0UtjNGyVUu31Fl8W3t7n CBbuTdbQBh1obZDEEJKErkRuYZgFFZ2XJUYc+Hgrup9+xuEYGaIur6dyNwaVdsYcVVfV sT/zu9o7WWXu5ip+eZYw44CquBk/7S8jFj6fZd4/QA/MUW1WgpEM9uW3Scg0Zgzyd+3K wHK9WXaLmkEuOMJZtDhTcGASH/0IG/ihamE0agXc6bzAc7g7vHsojuBoRpnPS9MaxTrf cQHLkJxJYR8lAz7UzrAlDMjOxKp4O1LDfvdal4BAdff7+zq5XIIJcImgp3XVQtuPsOjc i2Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zen5hFri; 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 c41si3002795plj.209.2019.08.16.08.55.17; Fri, 16 Aug 2019 08:55:33 -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=zen5hFri; 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 S1727421AbfHPPyX (ORCPT + 99 others); Fri, 16 Aug 2019 11:54:23 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46779 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727312AbfHPPyW (ORCPT ); Fri, 16 Aug 2019 11:54:22 -0400 Received: by mail-wr1-f67.google.com with SMTP id z1so1975919wru.13 for ; Fri, 16 Aug 2019 08:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rjwwQvzZbTAd0PumZ0fpI2ighfSvLNEfTeslgBS5o3c=; b=zen5hFriKrgrhQt7tOYMXw7q1geHpYj6bLTDvLzZgHS0RFMztkPu7eDcJ4HcIIRAC1 hTOFeDGYZJGX1SduUZSPtAMY4MkoCurIJoEpeCyQmGXOzkqkx0eF/BYnoJx1htseHBTl B22l2v/Fop1oAl5vXRu6cyfUmoLJ+ZbHwP1fj2+vbjLiYnukTeWjb+s/V3FjHnYGlG2P yYQ9qOQpjRFYJY/douTgJDCGa+t1O6dJ5seBUADnRGBkVeOodHv0EbUYtzkahW06UXqR 2UEr841WsMPDcTXJccy8ruUHjE/gih5Rvnw0gMduC4KP3KoUn5co2MFMaFUI37r4nR4Q I+4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rjwwQvzZbTAd0PumZ0fpI2ighfSvLNEfTeslgBS5o3c=; b=UE65PcxKyziKBhXOuh2juRWTV0AcJ2dE/hQkt4iNhG3vdAA70JRGAQ4PKOtYNugwHo pjP+upBvzhTVvJeM+DR3Q4j/iTnWjH0GBx1ld/4oEShSXiz6oBkE9P3go+ZWBusn4zX5 wYzz7FwKPiLirhNpZwchDJobWtZnznh4va4DiPHQ0ewcrF8eS82ayCkba+5AMwKDoCKc XCf20U5+p37DCBwD1JTtItk46J9UdzDtvjPqZidgxFfTH1zA+fX1edQxNYYvaUED/o5r Ia5nCWOJML2bbuJ9b38YueBNZrK4TYPT6BQ+0Dfnjllaw9lMBUDbU7lXAN46K3/iJRr9 musA== X-Gm-Message-State: APjAAAXSlGd1E+y9LEcE/ItRGyFGv8CqG3kfgvX7Eqb06MAF0kYNuYYM aIOj5IfHRPif434+RUHaiVG5SA== X-Received: by 2002:a5d:4946:: with SMTP id r6mr12650102wrs.266.1565970860895; Fri, 16 Aug 2019 08:54:20 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.googlemail.com with ESMTPSA id a64sm5352000wmf.1.2019.08.16.08.54.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Aug 2019 08:54:19 -0700 (PDT) Subject: Re: Re: [PATCH v3 2/4] backlight: Expose brightness curve type through sysfs To: Matthias Kaehlcke , Thierry Reding , Lee Jones , 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 References: <20190709190007.91260-1-mka@chromium.org> <20190709190007.91260-3-mka@chromium.org> <20190807201528.GO250418@google.com> From: Daniel Thompson Message-ID: <510f6d8a-71a0-fa6e-33ea-c4a4bfa96607@linaro.org> Date: Fri, 16 Aug 2019 16:54:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190807201528.GO250418@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Daniel.