From patchwork Fri Jan 26 14:54:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aishwarya Pant X-Patchwork-Id: 10186169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8FBD6601D5 for ; Fri, 26 Jan 2018 14:55:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F16E29781 for ; Fri, 26 Jan 2018 14:55:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7355629789; Fri, 26 Jan 2018 14:55:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FBF029781 for ; Fri, 26 Jan 2018 14:55:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752630AbeAZOy7 (ORCPT ); Fri, 26 Jan 2018 09:54:59 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:37635 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbeAZOy6 (ORCPT ); Fri, 26 Jan 2018 09:54:58 -0500 Received: by mail-pf0-f194.google.com with SMTP id p1so402323pfh.4; Fri, 26 Jan 2018 06:54:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=e/rJXOnuzWqoUcGKyzcFL9+zR1dXwat0ZRetKULpGag=; b=A+WscUs8lm1XoQjxuFfJqrxEwhxAUaCbPSTm53cBFyMSfeZhzF6kkfxMGGENlpFDqd VKIUuxp2CQgtKK2+Ux32r4n+HXR9dC0OeYlY1blttVPDG7pSX+6h9EzFruqRCcCO7ejJ KYcLMeGZ9SfCSfv9b7dr6OUCRT/Z1YXPUnkkGTblrOtlAnwzVY+qe5LxR4teZ4d34PiX eolQCJUMPAxF06WNdLvz/uku+Ek2I1J6Ql1F2BpfJcEWlpKcgG82BtaKXgNxDxJLo95u JF6FRiREKEIS5+HV2i3EaS0xYxdfMILI6/FDHBi53A2nXmKJPZSavSuw9KDE7ODWJkx8 a8hw== 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=e/rJXOnuzWqoUcGKyzcFL9+zR1dXwat0ZRetKULpGag=; b=ZIjvRyK9A0I0ZoK6oSdVMDOkRBFfxbDPft4D6kj7SbNOvlBCbVgDCKc1mZNfAE+xul MjvsOzdhT07SAqL/7BqzpBsbLwj7UBLnW9pmC4Lep7wAgjOLpg/p/FVniS9hgbERbQd4 /W2qDwsszTMfULrd1GFlExHrbvRk6Td8IM5z33/wJbmDN/Uxt5Bwqk1ZeBUfjfqbqGNb NhXkKcgM2O1ctqYVTPY8PKmS6hqZTxBOsizCfxuuHSIVxHIALYUuURjQKLFbrG6IRP+B fLY/F4JHm/PYDtOyJL4xvcEOMGhhZaBv/OP5Syy2Mz+lXw/Azk11C4Kx/5jBxScITYM8 OhFg== X-Gm-Message-State: AKwxytf9onoKZj7TlzCUNR3mhsSfkVNB/SQESlIWLTap1Gz5bW5/oevL f6BpXQBmfCEoQ2jct9I6UkZ7xw== X-Google-Smtp-Source: AH8x225BZNWBl/55GoCSMVkuPNXVtJLULHp4gLnnw9CeZRRuiTDbI2/DVYXwCY3vX83is7vZx8B6Gg== X-Received: by 10.98.97.4 with SMTP id v4mr9100333pfb.160.1516978497864; Fri, 26 Jan 2018 06:54:57 -0800 (PST) Received: from mordor.localdomain ([49.205.216.57]) by smtp.gmail.com with ESMTPSA id 62sm9917620pfs.0.2018.01.26.06.54.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 06:54:57 -0800 (PST) Date: Fri, 26 Jan 2018 20:24:50 +0530 From: Aishwarya Pant To: Lee Jones , Daniel Thompson , 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 Cc: Julia Lawall Subject: [PATCH 4/5] backlight: adp5520: document sysfs attributes Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- .../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.