get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808256,
    "url": "http://patchwork.ozlabs.org/api/patches/808256/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170831135715.27978-1-colin.king@canonical.com/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170831135715.27978-1-colin.king@canonical.com>",
    "list_archive_url": null,
    "date": "2017-08-31T13:57:15",
    "name": "net: phy: bcm7xxx: make array bcm7xxx_suspend_cfg static, reduces object code size",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b92a7a89fbbdaed65c4ea5d180c0f592da4eb339",
    "submitter": {
        "id": 2900,
        "url": "http://patchwork.ozlabs.org/api/people/2900/?format=api",
        "name": "Colin Ian King",
        "email": "colin.king@canonical.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170831135715.27978-1-colin.king@canonical.com/mbox/",
    "series": [
        {
            "id": 834,
            "url": "http://patchwork.ozlabs.org/api/series/834/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=834",
            "date": "2017-08-31T13:57:15",
            "name": "net: phy: bcm7xxx: make array bcm7xxx_suspend_cfg static, reduces object code size",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/834/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808256/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808256/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@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=netdev-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 3xjkTQ5PyQz9sPm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 23:57:30 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751761AbdHaN5S (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 09:57:18 -0400",
            "from youngberry.canonical.com ([91.189.89.112]:49261 \"EHLO\n\tyoungberry.canonical.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751309AbdHaN5R (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 31 Aug 2017 09:57:17 -0400",
            "from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost)\n\tby youngberry.canonical.com with esmtpsa\n\t(TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76)\n\t(envelope-from <colin.king@canonical.com>)\n\tid 1dnPy7-00022U-GC; Thu, 31 Aug 2017 13:57:15 +0000"
        ],
        "From": "Colin King <colin.king@canonical.com>",
        "To": "Andrew Lunn <andrew@lunn.ch>,\n\tFlorian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org",
        "Cc": "kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org",
        "Subject": "[PATCH] net: phy: bcm7xxx: make array bcm7xxx_suspend_cfg static,\n\treduces object code size",
        "Date": "Thu, 31 Aug 2017 14:57:15 +0100",
        "Message-Id": "<20170831135715.27978-1-colin.king@canonical.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "8bit",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "From: Colin Ian King <colin.king@canonical.com>\n\nDon't populate the array bcm7xxx_suspend_cfg A on the stack, instead\nmake it static.  Makes the object code smaller by over 300 bytes:\n\nBefore:\n   text\t   data\t    bss\t    dec\t    hex\tfilename\n   6351\t   8146\t      0\t  14497\t   38a1\tdrivers/net/phy/bcm7xxx.o\n\nAfter:\n   text\t   data\t    bss\t    dec\t    hex\tfilename\n   5986\t   8210\t      0\t  14196\t   3774\tdrivers/net/phy/bcm7xxx.o\n\nSigned-off-by: Colin Ian King <colin.king@canonical.com>\n---\n drivers/net/phy/bcm7xxx.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c\nindex caa9f6e17f34..8b33f688ac8a 100644\n--- a/drivers/net/phy/bcm7xxx.c\n+++ b/drivers/net/phy/bcm7xxx.c\n@@ -511,7 +511,7 @@ static int bcm7xxx_config_init(struct phy_device *phydev)\n static int bcm7xxx_suspend(struct phy_device *phydev)\n {\n \tint ret;\n-\tconst struct bcm7xxx_regs {\n+\tstatic const struct bcm7xxx_regs {\n \t\tint reg;\n \t\tu16 value;\n \t} bcm7xxx_suspend_cfg[] = {\n",
    "prefixes": []
}