Received: by 10.223.176.5 with SMTP id f5csp692575wra; Tue, 6 Feb 2018 05:58:37 -0800 (PST) X-Google-Smtp-Source: AH8x226LfFjBJ470EPt8xmWfHbFkAfJRjW131P1IjuxqIOUxGlhZROxw9Ab0y6zpD6iExgJpgcsP X-Received: by 10.101.100.69 with SMTP id s5mr2087535pgv.413.1517925517784; Tue, 06 Feb 2018 05:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517925517; cv=none; d=google.com; s=arc-20160816; b=H5TGdYJM75K3csmvoDp3GdXPqejEb0wHJ0xQmOc+cvq0wCejcsQw5ADL/zmiNH23Ie wEw9RjXrbW85vOHNGqLQfoosnnIfTumTzYJgB9cRH508q6XuHj1iZShcdE+lF4zlaaF2 GdY2yw0zyEkhT4H55BdmUrs6fV6cTnJu0Fv9WhbppvyjUtykO0JDnzDThq3A6CjgWsm5 xIZCqsjycBNN114xDYVfVzk62K7QmTtOYTVuIdGg0b8ep4fnClGSGcKPDgiRU98TJeOP 7/tVKjl51CUukD+8gHO3Z/jBgdELDER6bdRE1zMZjwZVYXI8gw5pkFpIKu/8DlhS472R HCPw== 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 :arc-authentication-results; bh=jyup3LP+niPM9ax+c6xTalXnkh0uNphWHdvODlYD25U=; b=F+T14gBHpBoSc4n0RoJzbnlwGirpfinwB/yAglixqfqjfIw4vbjf777CUqll5RZ1tX 36YnHGCuHGQ9Qg70euzPEMofbHoLZ9OPl085jC+AO2IRnK1T+yjcupWYr+CDIfmsoz0l UMmt+HE88dxsiJcspxxLVDHIpqMbdpn4Yh50bRVJRrtPalo8pHikTScwfW79rMXfyfms lBhdQD82dj/r30297icu0ZudEbP2rJL4UOsrjlJGfwYYv9TVboC3WKKnZrNBxW8PJWPE MYWWlMkFvpLSZEtWZGECi07CRsbervmcGGFI7efFhNehZOgjDz9WMjU442+yE2lY/Q5w 3Pew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gj7Bauy8; 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 x125si3304013pgb.607.2018.02.06.05.58.23; Tue, 06 Feb 2018 05:58:37 -0800 (PST) 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=gj7Bauy8; 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 S1752179AbeBFN5q (ORCPT + 99 others); Tue, 6 Feb 2018 08:57:46 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:39113 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeBFN5k (ORCPT ); Tue, 6 Feb 2018 08:57:40 -0500 Received: by mail-wr0-f195.google.com with SMTP id f6so2022332wra.6 for ; Tue, 06 Feb 2018 05:57:39 -0800 (PST) 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=jyup3LP+niPM9ax+c6xTalXnkh0uNphWHdvODlYD25U=; b=gj7Bauy8+NM5MiIGWxur7Dsz8gwM9FqQytUb3jvZ/r6qHZTP2gOuLMwV0mB0z4yA3m jb8G5HEZDDmzT72ZTOoWF/01OpWCHuEsEQTTxOpqZdD99lPoqx0poGWb/D1UYVFo5yOt hPd+WRIq34r+2cZ8f2dHZog3UbtBVu7km6eTc= 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=jyup3LP+niPM9ax+c6xTalXnkh0uNphWHdvODlYD25U=; b=ZAcvshxr+vlyDM5JSQ4i3qmfbmoDsQXiA7P8t6jEQHc7xTT/XFZ6LI2uiTSV/XlrAc L9gF2e4lJKAYLQg9sptECuxgs/kc0PFi01pBQjYE6UemMSorHgCXsRhEQsqzGynjZmKj QrkZMkp8LIG1eaEBkSThaZzrB/zqbA8AcWTdp3GLb08GSTZWA3kkWhBfNd6S5ttJjk06 rz7fVcddlCcgiu0Y3GP7zC7q9pLZWXOb7mv7x6ubnsNEaVBU8IlhXoh8NvEr7ylANBAE dZ0V9oyGqX6inHJNG40r0+MJleHmDwPGUjelpUE6lomuFT+4wgzhsDzcJhFk8D2m7OlT c8ng== X-Gm-Message-State: APf1xPCrMyJnyOKCqDw4IhswORBFLbleVnpIevo3Ye1etAHZUo8aIyzK wauK5d8C4ijgfFVWGpJhkVhu+g== X-Received: by 10.223.153.54 with SMTP id x51mr2566777wrb.210.1517925458769; Tue, 06 Feb 2018 05:57:38 -0800 (PST) Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id e15sm11823644wmd.26.2018.02.06.05.57.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 05:57:37 -0800 (PST) Date: Tue, 6 Feb 2018 13:57:35 +0000 From: Daniel Thompson To: Aishwarya Pant Cc: Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH , Michael Hennerich , Julia Lawall Subject: Re: [PATCH v2 3/3] backlight: adp8860: document sysfs attributes Message-ID: <20180206135735.zywr2sdkuiejpvcm@oak.lan> References: <4a486ddca7b33844765f6773fd41e91f1fa9b2fb.1517902411.git.aishpant@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4a486ddca7b33844765f6773fd41e91f1fa9b2fb.1517902411.git.aishpant@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 06, 2018 at 01:11:12PM +0530, Aishwarya Pant wrote: > Add documentation for sysfs interface of adp8860 series backlight > devices by reading through code and git commits. > > Signed-off-by: Aishwarya Pant > Acked-by: Michael Hennerich Acked-by: Daniel Thompson > --- > .../ABI/testing/sysfs-class-backlight-adp8860 | 54 ++++++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860 > > diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp8860 b/Documentation/ABI/testing/sysfs-class-backlight-adp8860 > new file mode 100644 > index 000000000000..54d61c788b1b > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-backlight-adp8860 > @@ -0,0 +1,54 @@ > +sysfs interface for analog devices adp8860 backlight driver > +----------------------------------------------------------- > + > +The backlight brightness control operates at three different levels for the > +adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and > +dark (level 3). By default the brightness operates at the daylight brightness > +level. > + > +What: /sys/class/backlight//ambient_light_level > +Date: Apr, 2010 > +KernelVersion: v2.6.35 > +Contact: Michael Hennerich > +Description: > + (RO) 13-bit conversion value for the first light sensor—high > + byte (Bit 12 to Bit 8). The value is updated every 80 ms (when > + the light sensor is enabled). > + > + > +What: /sys/class/backlight//ambient_light_zone > +Date: Apr, 2010 > +KernelVersion: v2.6.35 > +Contact: Michael Hennerich > +Description: > + (RW) Read or write the specific level at which the backlight > + operates. Value "0" enables automatic ambient light sensing, and > + values "1", "2" or "3" set the control to daylight, office or > + dark respectively. > + > + > +What: /sys/class/backlight//l1_daylight_max > +What: /sys/class/backlight//l2_office_max > +What: /sys/class/backlight//l3_dark_max > +Date: Apr, 2010 > +KernelVersion: v2.6.35 > +Contact: Michael Hennerich > +Description: > + (RW) Maximum current setting for the backlight when brightness > + is at one of the three levels (daylight, office or dark). This > + is an input code between 0 and 127, which is transformed to a > + value between 0 mA and 30 mA using linear or non-linear > + algorithms. > + > + > +What: /sys/class/backlight//l1_daylight_dim > +What: /sys/class/backlight//l2_office_dim > +What: /sys/class/backlight//l3_dark_dim > +Date: Apr, 2010 > +KernelVersion: v2.6.35 > +Contact: Michael Hennerich > +Description: > + (RW) Dim current setting for the backlight when brightness is at > + one of the three levels (daylight, office or dark). This is an > + input code between 0 and 127, which is transformed to a value > + between 0 mA and 30 mA using linear or non-linear algorithms. > -- > 2.16.1 >