Received: by 10.223.176.5 with SMTP id f5csp693213wra; Tue, 6 Feb 2018 05:59:22 -0800 (PST) X-Google-Smtp-Source: AH8x226IiGmAXcoN8OsLgpJe3FHaMIBqrdOMsbMBTeEn14fo2OqIK+LF81wDTNsPb7Ta6hEfpwg4 X-Received: by 10.98.150.14 with SMTP id c14mr653581pfe.210.1517925562357; Tue, 06 Feb 2018 05:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517925562; cv=none; d=google.com; s=arc-20160816; b=M/0Fg7qN4nWpCiiRP+Gmn3EBm0zqsFZ+w+jNCqnG1RJzoYvwpaTkEpkdfdMNo/beHE tdX1+b6zYYAbb5glxfzUjf8FAbcwt2uyo7vv2w5Fzxen5lVEJjW7CqRCQJg9uHjKv8BZ TY59QDsypwHMRUtUpsR97BPFANVMxKO13D/gRnJfxXXrGII1Rl1PPuCaMGkBSy+C77I+ uy0L7g2H0eu4G2oKp9W6klurB5d3Rn4kukV7GJg728hpiZy17H/tkXcYx8wby902sirN Jp1PzTZRJxngkHndo5CgPNruy7y1Lok7tXDckITfx4Rxuqi1CpLO3tFbMEdsIVKsCNHb CsEQ== 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:arc-authentication-results; bh=5h88kgU8TuVanHc4BsvXxOTM0takxGzBRGW5e44OLw0=; b=vD+H4YJoZdklGhQAz5WCwAwKsTADQiH9tbB5U1J+9aRq5rqYOa26YrvEC1XBW1oo7B 50Ysa2AEAHQGDpjcW3BsqSFqmRyU2T9cIH0wnpW6pakrn5q3AMtZlVR5975X8H2K17Ux hEqXUBJGqTEFnOcPuUiAxoo0DExtKsSl02Yjud+/5czsWhyUNtM7sKOWY4zfRHsa1Rgt 4WGcd/gd3nEEflvbQlW1CvlB9saJn9y8QJNUrEF9FzN4Kz+W4euHH1v+bOTw2vyox2lU aDVXkGUqaheKx/k3lZTdeE1Qanf3k4CWMNDX+hbdCdXy3JtiP4JT0BC0fGzcrG4IlfIK DNdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JXOHXNR1; 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 f31-v6si1292390plf.601.2018.02.06.05.59.08; Tue, 06 Feb 2018 05:59:22 -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=JXOHXNR1; 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 S1751424AbeBFN5U (ORCPT + 99 others); Tue, 6 Feb 2018 08:57:20 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:45986 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeBFN5M (ORCPT ); Tue, 6 Feb 2018 08:57:12 -0500 Received: by mail-wr0-f193.google.com with SMTP id h9so2014737wre.12 for ; Tue, 06 Feb 2018 05:57:11 -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:in-reply-to:user-agent; bh=5h88kgU8TuVanHc4BsvXxOTM0takxGzBRGW5e44OLw0=; b=JXOHXNR1Neq/oLq/HdLWriwXfdLSTjwLComXM0c1Y7gvgxuVyNOq8qm4jRELXleLYD myPEreclMslYDGHUcPzFeI+kTrdf/5AN1OtO6hBSPaNypXVetqNtalkJSIrYcYykhcuK vvSf+3Un5/O/ifz6xyY928ZnTdlcPfWRLm3T8= 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=5h88kgU8TuVanHc4BsvXxOTM0takxGzBRGW5e44OLw0=; b=LGP/pNiWzCXpd5zPB9Fi5sdjbpLjOyUT4lWI37M0oqPmscVI+j+ZqDaCZ/RzjYiRD8 0zhBElOHieUjo/oTNOjtDPjXpqfF7DiMOPA0PQwkR8nvApxgUv27a5WKM23DiBlAKXvS aYhRuIVkpgBX/ujLOLIJPop9zlAfzDnUljHWwbFoxawGw7v/tOwBUNcvGEyaETKuy0x8 ffk1RQfz5D4w7rKaad58jboxEysYVSqWX7ix3/XC9MuqhzsG4+eqzkiSZD31/NBEKpuA xo2KFKckS3Z7YqShijGRQ6ZshhB9q3RA8HJDuke3Rq5kiWFTuvhB7443XHfclnsT0fJj 9oZQ== X-Gm-Message-State: APf1xPAlDEzeXwn+pjXcLhbrarLRHTOALAiP5Ge0YqvrIv6wNmSNtVFQ +lA8B7LydeIcWx099FuG3FSWGA== X-Received: by 10.223.159.9 with SMTP id l9mr2513155wrf.30.1517925431272; Tue, 06 Feb 2018 05:57:11 -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 j77sm32865107wmf.37.2018.02.06.05.57.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 05:57:10 -0800 (PST) Date: Tue, 6 Feb 2018 13:57:08 +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 2/3] backlight: adp5520: document sysfs attributes Message-ID: <20180206135708.2pmadwxreqj2x5qt@oak.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:10:26PM +0530, Aishwarya Pant wrote: > Add documentation for sysfs interface of adp5520/adp5501 analog devices > backlight driver by reading code and looking through git commit logs. > > Signed-off-by: Aishwarya Pant > Acked-by: Michael Hennerich Acked-by: Daniel Thompson > --- > .../ABI/testing/sysfs-class-backlight-adp5520 | 31 ++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520 > > diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp5520 b/Documentation/ABI/testing/sysfs-class-backlight-adp5520 > new file mode 100644 > index 000000000000..34b6ebafa210 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-backlight-adp5520 > @@ -0,0 +1,31 @@ > +sysfs interface for analog devices adp5520(01) backlight driver > +--------------------------------------------------------------- > + > +The backlight brightness control operates at three different levels for the > +adp5520 and adp5501 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//daylight_max > +What: /sys/class/backlight//office_max > +What: /sys/class/backlight//dark_max > +Date: Sep, 2009 > +KernelVersion: v2.6.32 > +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//daylight_dim > +What: /sys/class/backlight//office_dim > +What: /sys/class/backlight//dark_dim > +Date: Sep, 2009 > +KernelVersion: v2.6.32 > +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 >