Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816932/?format=api
{ "id": 816932, "url": "http://patchwork.ozlabs.org/api/patches/816932/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1506006190-9498-2-git-send-email-jjhiblot@ti.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1506006190-9498-2-git-send-email-jjhiblot@ti.com>", "list_archive_url": null, "date": "2017-09-21T15:03:09", "name": "[U-Boot,v3,1/2] dm: core: Add functions to get strings and the string count from a stringlist", "commit_ref": "b5a144a5014be5e3b065e2061a7d17e653d739ae", "pull_url": null, "state": "accepted", "archived": false, "hash": "40d95b701aa59e6038ae0d28da4aa8bece8c1fa3", "submitter": { "id": 70508, "url": "http://patchwork.ozlabs.org/api/people/70508/?format=api", "name": "Jean-Jacques Hiblot", "email": "jjhiblot@ti.com" }, "delegate": { "id": 12423, "url": "http://patchwork.ozlabs.org/api/users/12423/?format=api", "username": "Jaehoon", "first_name": "Jaehoon", "last_name": "Chung", "email": "jh80.chung@samsung.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1506006190-9498-2-git-send-email-jjhiblot@ti.com/mbox/", "series": [ { "id": 4408, "url": "http://patchwork.ozlabs.org/api/series/4408/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=4408", "date": "2017-09-21T15:03:09", "name": "power: Add a driver to handle the PBIAS cell of the TI SOCs", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/4408/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816932/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816932/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"kC4d/MGs\";\n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyfxs3jwhz9t3v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 01:03:29 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 3BA39C22029; Thu, 21 Sep 2017 15:03:21 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id B961BC21DD0;\n\tThu, 21 Sep 2017 15:03:17 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 87515C21C54; Thu, 21 Sep 2017 15:03:16 +0000 (UTC)", "from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77])\n\tby lists.denx.de (Postfix) with ESMTPS id E2BD4C21C4E\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 15:03:15 +0000 (UTC)", "from dlelxv90.itg.ti.com ([172.17.2.17])\n\tby lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8LF3DHo004384; \n\tThu, 21 Sep 2017 10:03:13 -0500", "from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27])\n\tby dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LF3Dq9004617; \n\tThu, 21 Sep 2017 10:03:13 -0500", "from DFLE105.ent.ti.com (10.64.6.26) by DFLE106.ent.ti.com\n\t(10.64.6.27) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34;\n\tThu, 21 Sep 2017 10:03:13 -0500", "from dlep33.itg.ti.com (157.170.170.75) by DFLE105.ent.ti.com\n\t(10.64.6.26) with Microsoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend\n\tTransport; Thu, 21 Sep 2017 10:03:13 -0500", "from localhost (ileax41-snat.itg.ti.com [10.172.224.153])\n\tby dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LF3CUN012843;\n\tThu, 21 Sep 2017 10:03:12 -0500" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1506006193;\n\tbh=up9MdC4cq66KmEwBliLokrWlKm8E3HKapAfdkpmnqBU=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=kC4d/MGsbTJozjOI6QUeliI9GGXNqdYJjNPByeEV4Y92IYrg1E6V2u6c6CnmzFnlO\n\ti97tE+zPbIWtM+jpDuBRJay2HzJWWvNq6J5G1sB2FCEHfvlkJXSBIyTc4wgP61tHSj\n\twr7nMbh1bAsH7/WUCjKstqn3BWjuIZae/n5Ba+5w=", "From": "Jean-Jacques Hiblot <jjhiblot@ti.com>", "To": "<jh80.chung@samsung.com>, <trini@konsulko.com>, <kishon@ti.com>,\n\t<sjg@chromium.org>", "Date": "Thu, 21 Sep 2017 17:03:09 +0200", "Message-ID": "<1506006190-9498-2-git-send-email-jjhiblot@ti.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1506006190-9498-1-git-send-email-jjhiblot@ti.com>", "References": "<1506006190-9498-1-git-send-email-jjhiblot@ti.com>", "MIME-Version": "1.0", "X-EXCLAIMER-MD-CONFIG": "e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180", "Cc": "u-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH v3 1/2] dm: core: Add functions to get strings and\n\tthe string count from a stringlist", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "dev_read_string_count() is used to get the number of strings in a\nstringlist.\ndev_read_string_index() is used to get a string in the stringlist based on\nits position in the list.\n\nSigned-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>\n---\n drivers/core/read.c | 11 +++++++++++\n include/dm/read.h | 36 ++++++++++++++++++++++++++++++++++++\n 2 files changed, 47 insertions(+)", "diff": "diff --git a/drivers/core/read.c b/drivers/core/read.c\nindex 065589a..eacf171 100644\n--- a/drivers/core/read.c\n+++ b/drivers/core/read.c\n@@ -81,6 +81,17 @@ int dev_read_stringlist_search(struct udevice *dev, const char *property,\n \treturn ofnode_stringlist_search(dev_ofnode(dev), property, string);\n }\n \n+int dev_read_string_index(struct udevice *dev, const char *propname, int index,\n+\t\t\t const char **outp)\n+{\n+\treturn ofnode_read_string_index(dev_ofnode(dev), propname, index, outp);\n+}\n+\n+int dev_read_string_count(struct udevice *dev, const char *propname)\n+{\n+\treturn ofnode_read_string_count(dev_ofnode(dev), propname);\n+}\n+\n int dev_read_phandle_with_args(struct udevice *dev, const char *list_name,\n \t\t\t\tconst char *cells_name, int cell_count,\n \t\t\t\tint index,\ndiff --git a/include/dm/read.h b/include/dm/read.h\nindex e7f7125..8114037 100644\n--- a/include/dm/read.h\n+++ b/include/dm/read.h\n@@ -166,6 +166,29 @@ int dev_read_stringlist_search(struct udevice *dev, const char *property,\n \t\t\t const char *string);\n \n /**\n+ * dev_read_string_index() - obtain an indexed string from a string list\n+ *\n+ * @dev: device to examine\n+ * @propname: name of the property containing the string list\n+ * @index: index of the string to return\n+ * @out: return location for the string\n+ *\n+ * @return:\n+ * length of string, if found or -ve error value if not found\n+ */\n+int dev_read_string_index(struct udevice *dev, const char *propname, int index,\n+\t\t\t const char **outp);\n+\n+/**\n+ * dev_read_string_count() - find the number of strings in a string list\n+ *\n+ * @dev: device to examine\n+ * @propname: name of the property containing the string list\n+ * @return:\n+ * number of strings in the list, or -ve error value if not found\n+ */\n+int dev_read_string_count(struct udevice *dev, const char *propname);\n+/**\n * dev_read_phandle_with_args() - Find a node pointed by phandle in a list\n *\n * This function is useful to parse lists of phandles and their arguments.\n@@ -451,6 +474,19 @@ static inline int dev_read_stringlist_search(struct udevice *dev,\n \treturn ofnode_stringlist_search(dev_ofnode(dev), propname, string);\n }\n \n+static inline int dev_read_string_index(struct udevice *dev,\n+\t\t\t\t\tconst char *propname, int index,\n+\t\t\t\t\tconst char **outp)\n+{\n+\treturn ofnode_read_string_index(dev_ofnode(dev), propname, index, outp);\n+}\n+\n+static inline int dev_read_string_count(struct udevice *dev,\n+\t\t\t\t\tconst char *propname)\n+{\n+\treturn ofnode_read_string_count(dev_ofnode(dev), propname);\n+}\n+\n static inline int dev_read_phandle_with_args(struct udevice *dev,\n \t\tconst char *list_name, const char *cells_name, int cell_count,\n \t\tint index, struct ofnode_phandle_args *out_args)\n", "prefixes": [ "U-Boot", "v3", "1/2" ] }