get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/818611/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 818611,
    "url": "http://patchwork.ozlabs.org/api/patches/818611/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/e9385e366da18057aaa1e1d5d751839cde4343fa.1506428208.git-series.quentin.schulz@free-electrons.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<e9385e366da18057aaa1e1d5d751839cde4343fa.1506428208.git-series.quentin.schulz@free-electrons.com>",
    "list_archive_url": null,
    "date": "2017-09-26T12:17:15",
    "name": "[v2,05/10] pinctrl: axp209: add programmable gpio_status_offset",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e53cbaf3d81dabb327c3fe822f6ff6937458b3b2",
    "submitter": {
        "id": 69366,
        "url": "http://patchwork.ozlabs.org/api/people/69366/?format=api",
        "name": "Quentin Schulz",
        "email": "quentin.schulz@free-electrons.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/e9385e366da18057aaa1e1d5d751839cde4343fa.1506428208.git-series.quentin.schulz@free-electrons.com/mbox/",
    "series": [
        {
            "id": 5123,
            "url": "http://patchwork.ozlabs.org/api/series/5123/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=5123",
            "date": "2017-09-26T12:17:17",
            "name": "add pinmuxing support for pins in AXP209 and AXP813 PMICs",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/5123/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818611/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818611/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-gpio-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@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=linux-gpio-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1g423nNMz9tXf\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 22:19:14 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S968596AbdIZMSR (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tTue, 26 Sep 2017 08:18:17 -0400",
            "from mail.free-electrons.com ([62.4.15.54]:52130 \"EHLO\n\tmail.free-electrons.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S965758AbdIZMSQ (ORCPT\n\t<rfc822; linux-gpio@vger.kernel.org>); Tue, 26 Sep 2017 08:18:16 -0400",
            "by mail.free-electrons.com (Postfix, from userid 110)\n\tid 50CBB20934; Tue, 26 Sep 2017 14:18:14 +0200 (CEST)",
            "from localhost.localdomain\n\t(LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87])\n\tby mail.free-electrons.com (Postfix) with ESMTPSA id 8777E2088C;\n\tTue, 26 Sep 2017 14:17:55 +0200 (CEST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on\n\tmail.free-electrons.com",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT,\n\tURIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0",
        "From": "Quentin Schulz <quentin.schulz@free-electrons.com>",
        "To": "linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com,\n\twens@csie.org, linux@armlinux.org.uk,\n\tmaxime.ripard@free-electrons.com, lee.jones@linaro.org",
        "Cc": "linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,\n\tlinux-sunxi@googlegroups.com, thomas.petazzoni@free-electrons.com,\n\tQuentin Schulz <quentin.schulz@free-electrons.com>",
        "Subject": "[PATCH v2 05/10] pinctrl: axp209: add programmable\n\tgpio_status_offset",
        "Date": "Tue, 26 Sep 2017 14:17:15 +0200",
        "Message-Id": "<e9385e366da18057aaa1e1d5d751839cde4343fa.1506428208.git-series.quentin.schulz@free-electrons.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": [
            "<cover.1c314f4154a6d27354625f03d0a5269eee55a9c5.1506428208.git-series.quentin.schulz@free-electrons.com>",
            "<cover.1c314f4154a6d27354625f03d0a5269eee55a9c5.1506428208.git-series.quentin.schulz@free-electrons.com>"
        ],
        "References": [
            "<cover.1c314f4154a6d27354625f03d0a5269eee55a9c5.1506428208.git-series.quentin.schulz@free-electrons.com>",
            "<cover.1c314f4154a6d27354625f03d0a5269eee55a9c5.1506428208.git-series.quentin.schulz@free-electrons.com>"
        ],
        "Sender": "linux-gpio-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-gpio.vger.kernel.org>",
        "X-Mailing-List": "linux-gpio@vger.kernel.org"
    },
    "content": "To prepare for patches that will add support for a new PMIC that has a\ndifferent GPIO input status register, add a gpio_status_offset within\naxp20x_pctl structure and use it.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>\n---\n drivers/pinctrl/pinctrl-axp209.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c\nindex 4be1aca..11f871e 100644\n--- a/drivers/pinctrl/pinctrl-axp209.c\n+++ b/drivers/pinctrl/pinctrl-axp209.c\n@@ -89,6 +89,7 @@ struct axp20x_pctl {\n \tunsigned int\t\t\t\tngroups;\n \tstruct axp20x_pinctrl_function\t\t*functions;\n \tunsigned int\t\t\t\tnfunctions;\n+\tunsigned int\t\t\t\tgpio_status_offset;\n };\n \n static const struct axp20x_desc_pin axp209_pins[] = {\n@@ -127,7 +128,7 @@ static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset)\n \tif (ret)\n \t\treturn ret;\n \n-\treturn !!(val & BIT(offset + 4));\n+\treturn !!(val & BIT(offset + pctl->gpio_status_offset));\n }\n \n static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)\n@@ -509,6 +510,7 @@ static int axp20x_pctl_probe(struct platform_device *pdev)\n \tpctl->regmap = axp20x->regmap;\n \n \tpctl->desc = &axp20x_pinctrl_data;\n+\tpctl->gpio_status_offset = 4;\n \tpctl->dev = &pdev->dev;\n \n \tplatform_set_drvdata(pdev, pctl);\n",
    "prefixes": [
        "v2",
        "05/10"
    ]
}