From patchwork Tue Feb 6 07:40:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aishwarya Pant X-Patchwork-Id: 10202451 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 15998601A1 for ; Tue, 6 Feb 2018 07:40:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04C0B28A9A for ; Tue, 6 Feb 2018 07:40:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0367428A9B; Tue, 6 Feb 2018 07:40:36 +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 7CE5428A9D for ; Tue, 6 Feb 2018 07:40:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752187AbeBFHke (ORCPT ); Tue, 6 Feb 2018 02:40:34 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:56167 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185AbeBFHke (ORCPT ); Tue, 6 Feb 2018 02:40:34 -0500 Received: by mail-it0-f66.google.com with SMTP id b66so1369431itd.5; Mon, 05 Feb 2018 23:40:33 -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=vyFtUJFwfAj//dKdEF6adtYbiZd+eEtOYYVQbGeWTdQ=; b=bxB5V0Ove5tzzkzrEcqjdrVOlraOa3VAvS41V/QWJoYLHGiWQxzFqudWHxr0MrLMOd QujjSn36vHqzqVsaE6vBTK2BCfhfJ9U6/rIRyJuN26B/tpoG07knYidSJTKddbuPgzZs fcMTZO/0c79pYDxXkxqHf7EuqToT3L4mFFmOnjvP5H2RBEZQ6Yx3HymZ3ERoNcpqmsWh DdB95AbKSaU0XgeYuVCBdi2snPAT45+Y1+UvB/mTa9vAoUP1hWS0Urn76CJAqjV3KF8s PJQyzcfC5yJpvwJUoP/Tozh9mmrakmStLLaij+Blgx7PGMAGxyc2y+t+DoGimzxme3wc oDZw== 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=vyFtUJFwfAj//dKdEF6adtYbiZd+eEtOYYVQbGeWTdQ=; b=m4JKIp6sNADeiYxPAQsCObyBYtHFInPaCoqw9tDCBeYXxdFKBVYPcUTJdEPknTh1Nj Ua+a4ZdWbNqKhY22KCKtiTOfd6QlTA2Ix8afghTTQdoGQNQF7sqnfYBYi+R1vE0Fy52w a+eZBFx3XtZ+lyMPpl93KrSTKbK8B5TfzjPda0LrFdMVUN272keIcJLdEPdDGL+vcYr0 3SD79I4SzhxDPXduQ8lDhlxuGF30KikjQwlNxM7WZlJMy5Dd+prBePgYzTVoIZoM1iTK 8gueNAQKurw5ZdajgcNgx4R6RRrCDPjYrA41sFvYNO5gBoTBFih6snPw1LfP0oSjQzHr DkVg== X-Gm-Message-State: APf1xPB/0Fkp4jcsze1UmL6h16L+MtdgQchHnxcuRWgroGVMqvHPwAHk h2EkofBk9JST5OJTJ3zi4z8= X-Google-Smtp-Source: AH8x2272GIyWfivks8NY5uDS+tMIfz+lDOplEeKnKsxRMfUKo5x3/3gFf91QqBUWo4EYCY7kMYmwyQ== X-Received: by 10.36.254.1 with SMTP id w1mr1935565ith.50.1517902833434; Mon, 05 Feb 2018 23:40:33 -0800 (PST) Received: from mordor.localdomain ([49.205.217.87]) by smtp.gmail.com with ESMTPSA id 20sm6610252iof.43.2018.02.05.23.40.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Feb 2018 23:40:33 -0800 (PST) Date: Tue, 6 Feb 2018 13:10:26 +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 v2 2/3] backlight: adp5520: document sysfs attributes Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) 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 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.