get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807717,
    "url": "http://patchwork.ozlabs.org/api/patches/807717/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/be1c12e8040201dcabec64561ec6e446e2111b1e.1504111357.git.arvind.yadav.cs@gmail.com/",
    "project": {
        "id": 19,
        "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api",
        "name": "Linux IMX development",
        "link_name": "linux-imx",
        "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org",
        "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<be1c12e8040201dcabec64561ec6e446e2111b1e.1504111357.git.arvind.yadav.cs@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-30T16:47:51",
    "name": "ARM: mxs: constify platform_suspend_ops",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ff031c2ec1957c7322cd0d6cf39605883a029ab1",
    "submitter": {
        "id": 69434,
        "url": "http://patchwork.ozlabs.org/api/people/69434/?format=api",
        "name": "Arvind Yadav",
        "email": "arvind.yadav.cs@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/be1c12e8040201dcabec64561ec6e446e2111b1e.1504111357.git.arvind.yadav.cs@gmail.com/mbox/",
    "series": [
        {
            "id": 652,
            "url": "http://patchwork.ozlabs.org/api/series/652/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-imx/list/?series=652",
            "date": "2017-08-30T16:47:51",
            "name": "ARM: mxs: constify platform_suspend_ops",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/652/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807717/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807717/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming-imx@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"OWEoQ5Hl\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"dCOYP2PU\"; dkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjBKK39gXz9sQl\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 02:48:36 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn6AL-0006dE-Iw; Wed, 30 Aug 2017 16:48:33 +0000",
            "from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn6AH-0006LS-C9 for linux-arm-kernel@lists.infradead.org;\n\tWed, 30 Aug 2017 16:48:31 +0000",
            "by mail-pf0-x243.google.com with SMTP id l8so139792pfj.1\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 30 Aug 2017 09:48:08 -0700 (PDT)",
            "from localhost.localdomain ([103.16.68.146])\n\tby smtp.gmail.com with ESMTPSA id\n\ti187sm11475015pfe.67.2017.08.30.09.48.04\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 30 Aug 2017 09:48:06 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=lFPqNkK2BNiB/IIj+V07C9/Oxq4e3ctf9+2IlDudsMs=;\n\tb=OWE\n\toQ5Hlr/i4szugWuqcqxbIcp3hpFhRl+TDRbLUY0RhKxNadEsuzX4SwvrleEfT9VPWQH9Tz8lpcW+k\n\tWsqIokDJONPrx5CyCirG6jtDx1M6L7+Yv1tLUd2qthaRZTuPi2KmbNv56xwU3hYMAWDrJxNaHNHZ7\n\tGPMVVyJObSQ8gC5W/NkrQTk26tDzDaAG8Szz9vUJwQyBUhi34YdX88Wl9wQ+QZf7BCts74kezs4BN\n\tL/4XSb/SMcM/3T5SbkjiNncYTHRzcyaeDlxTxMUYTvsZIAZs6vRnnca7PCnyoiJJs/N3zz3QuIF+o\n\trzZADBP3DBnb2o4CODv6gz8Qgj99JBg==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=w99BKx6v8kNjwP+yuOnI7HOSC7kkc80nYNFP8m/JTsc=;\n\tb=dCOYP2PU043aQ17DQcvvvHOfZ6cSVhJkINP1nTP2PqwkoY79vdu1X+Tz+ivZixq/8G\n\tYFI+ypbpk3G11+RifqsoAIaycsYzykLf2lWV4K0mODeKOAEdPhpD00wPqS/txV3qNZGZ\n\twhyC61RtTzFrQz37zwV5z3QTghOQLcETTWH8m4mqWY9zQoi8qz7qdfQgH7qf4g4KuK90\n\tUWUs/c1rx5a+9FZkMezv2mJZW0fwFlV12VcBTkLS8KNjHxluKRaUOxUrAgOyqWuZpG9Y\n\tQFpH6Vawh15R/v4AMTIHGjNyEWDgjqpvpVyzHTidAk0jfUxqPB+oUI+PmTzG3SJUqtZh\n\trzFA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=w99BKx6v8kNjwP+yuOnI7HOSC7kkc80nYNFP8m/JTsc=;\n\tb=EXLHFmEodLNVWqLGUvv+BQHnNbMSBTHSraMrC1TR8nvP3/JinMykwTjW2pY0LsTagJ\n\tP+k8OhRwclcTBObFNOoP0NFDE3QsOFFyDIvkH+A1oBGv9ySSdAkEK6Mo69qZ8YZmHvp1\n\tq1YIXOzCpKfgszlMArAwAQDIlIZP+lSCvjS9l+FObjam/r4ycHjUZxlPa4RzhRqu4akH\n\t7/VFop4KWTz0UlJIG/2nZ8urKStBrct8EhUM2L9IvdZF8BpV4+ytGjS7X48t4djALIcP\n\tB65sqtFuTIjIZX1dRpyIOXaa0IUM0VXGUu0FnZHr3QzIVqCBxunsxs7k8xitn1xNhxfQ\n\tgn4g==",
        "X-Gm-Message-State": "AHYfb5hRQ7YbZdLonpAqtokHBBqqF9O1+O3pE//Xe2k4yLyffs7Ku15Q\n\tIlWO3ojcuV6IilZR",
        "X-Received": "by 10.98.66.214 with SMTP id h83mr2206111pfd.10.1504111688271;\n\tWed, 30 Aug 2017 09:48:08 -0700 (PDT)",
        "From": "Arvind Yadav <arvind.yadav.cs@gmail.com>",
        "To": "shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com,\n\tlinux@armlinux.org.uk",
        "Subject": "[PATCH] ARM: mxs: constify platform_suspend_ops",
        "Date": "Wed, 30 Aug 2017 22:17:51 +0530",
        "Message-Id": "<be1c12e8040201dcabec64561ec6e446e2111b1e.1504111357.git.arvind.yadav.cs@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170830_094829_503547_9552971D ",
        "X-CRM114-Status": "UNSURE (   9.94  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-2.0 (--)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c00:0:0:0:243 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (arvind.yadav.cs[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain",
        "X-BeenThere": "linux-arm-kernel@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>",
        "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>",
        "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>",
        "Cc": "linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>",
        "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org",
        "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org"
    },
    "content": "platform_suspend_ops are not supposed to change at runtime.\nFunctions suspend_set_ops working with const platform_suspend_ops.\nSo mark the non-const structs as const.\n\nSigned-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>\n---\n arch/arm/mach-mxs/pm.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/arch/arm/mach-mxs/pm.c b/arch/arm/mach-mxs/pm.c\nindex 0170e99..6ae057c 100644\n--- a/arch/arm/mach-mxs/pm.c\n+++ b/arch/arm/mach-mxs/pm.c\n@@ -30,7 +30,7 @@ static int mxs_suspend_enter(suspend_state_t state)\n \treturn 0;\n }\n \n-static struct platform_suspend_ops mxs_suspend_ops = {\n+static const struct platform_suspend_ops mxs_suspend_ops = {\n \t.enter = mxs_suspend_enter,\n \t.valid = suspend_valid_only_mem,\n };\n",
    "prefixes": []
}