{"id":814860,"url":"http://patchwork.ozlabs.org/api/patches/814860/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170918101756.8562-5-sakari.ailus@linux.intel.com/","project":{"id":37,"url":"http://patchwork.ozlabs.org/api/projects/37/?format=json","name":"Devicetree Bindings","link_name":"devicetree-bindings","list_id":"devicetree.vger.kernel.org","list_email":"devicetree@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170918101756.8562-5-sakari.ailus@linux.intel.com>","list_archive_url":null,"date":"2017-09-18T10:17:54","name":"[v2,4/6] dt: bindings: as3645a: Improve label documentation, DT example","commit_ref":null,"pull_url":null,"state":"superseded","archived":true,"hash":"ce483febe912815c5300a5e1da08b931de9c1509","submitter":{"id":65485,"url":"http://patchwork.ozlabs.org/api/people/65485/?format=json","name":"Sakari Ailus","email":"sakari.ailus@linux.intel.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170918101756.8562-5-sakari.ailus@linux.intel.com/mbox/","series":[{"id":3616,"url":"http://patchwork.ozlabs.org/api/series/3616/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/list/?series=3616","date":"2017-09-18T10:17:50","name":"AS3645A fixes","version":2,"mbox":"http://patchwork.ozlabs.org/series/3616/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814860/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814860/checks/","tags":{},"related":[],"headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwhlw0CPVz9s7M\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 20:18:04 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753351AbdIRKSC (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tMon, 18 Sep 2017 06:18:02 -0400","from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:45400 \"EHLO\n\thillosipuli.retiisi.org.uk\" rhost-flags-OK-OK-OK-FAIL)\n\tby vger.kernel.org with ESMTP id S1753005AbdIRKR7 (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Mon, 18 Sep 2017 06:17:59 -0400","from lanttu.localdomain (unknown\n\t[IPv6:2001:1bc8:1a6:d3d5::e1:1002])\n\tby hillosipuli.retiisi.org.uk (Postfix) with ESMTP id 4622C60132;\n\tMon, 18 Sep 2017 13:17:58 +0300 (EEST)"],"From":"Sakari Ailus <sakari.ailus@linux.intel.com>","To":"linux-leds@vger.kernel.org","Cc":"linux-media@vger.kernel.rg, devicetree@vger.kernel.org, pavel@ucw.cz","Subject":"[PATCH v2 4/6] dt: bindings: as3645a: Improve label documentation, \n\tDT example","Date":"Mon, 18 Sep 2017 13:17:54 +0300","Message-Id":"<20170918101756.8562-5-sakari.ailus@linux.intel.com>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170918101756.8562-1-sakari.ailus@linux.intel.com>","References":"<20170918101756.8562-1-sakari.ailus@linux.intel.com>","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"},"content":"Specify the exact label used if the label property is omitted in DT, as\nwell as use label in the example that conforms to LED device naming.\n\nSigned-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>\n---\n Documentation/devicetree/bindings/leds/ams,as3645a.txt | 12 ++++++++----\n 1 file changed, 8 insertions(+), 4 deletions(-)","diff":"diff --git a/Documentation/devicetree/bindings/leds/ams,as3645a.txt b/Documentation/devicetree/bindings/leds/ams,as3645a.txt\nindex fdc40e354a64..9adba41e74b3 100644\n--- a/Documentation/devicetree/bindings/leds/ams,as3645a.txt\n+++ b/Documentation/devicetree/bindings/leds/ams,as3645a.txt\n@@ -39,7 +39,9 @@ ams,input-max-microamp: Maximum flash controller input current. The\n Optional properties of the flash child node\n ===========================================\n \n-label\t\t: The label of the flash LED.\n+label\t\t: The label of the flash LED. The label is otherwise assumed to\n+\t\t  be the device node name concatenated with \":white:\" and the\n+\t\t  name of the flash LED node is assumed if omitted.\n \n \n Required properties of the indicator child node (1)\n@@ -52,7 +54,9 @@ led-max-microamp: Maximum indicator current. The allowed values are\n Optional properties of the indicator child node\n ===============================================\n \n-label\t\t: The label of the indicator LED.\n+label\t\t: The label of the indicator LED. The label is otherwise assumed\n+\t\t  to be the device node name concatenated with \":red:\" and the\n+\t\t  name of the indicator LED node is assumed if omitted.\n \n \n Example\n@@ -69,11 +73,11 @@ Example\n \t\t\tflash-max-microamp = <320000>;\n \t\t\tled-max-microamp = <60000>;\n \t\t\tams,input-max-microamp = <1750000>;\n-\t\t\tlabel = \"as3645a:flash\";\n+\t\t\tlabel = \"as3645a:white:flash\";\n \t\t};\n \t\tindicator@1 {\n \t\t\treg = <0x1>;\n \t\t\tled-max-microamp = <10000>;\n-\t\t\tlabel = \"as3645a:indicator\";\n+\t\t\tlabel = \"as3645a:red:indicator\";\n \t\t};\n \t};\n","prefixes":["v2","4/6"]}