get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1135719,
    "url": "http://patchwork.ozlabs.org/api/patches/1135719/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190723141513.5749-1-hslester96@gmail.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20190723141513.5749-1-hslester96@gmail.com>",
    "list_archive_url": null,
    "date": "2019-07-23T14:15:13",
    "name": "e1000e: Use dev_get_drvdata where possible",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f12bf342fd776720563fb1f05d597770af41c25f",
    "submitter": {
        "id": 77068,
        "url": "http://patchwork.ozlabs.org/api/people/77068/?format=api",
        "name": "Chuhong Yuan",
        "email": "hslester96@gmail.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190723141513.5749-1-hslester96@gmail.com/mbox/",
    "series": [
        {
            "id": 120999,
            "url": "http://patchwork.ozlabs.org/api/series/120999/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=120999",
            "date": "2019-07-23T14:15:13",
            "name": "e1000e: Use dev_get_drvdata where possible",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/120999/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1135719/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1135719/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=gmail.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"rT8A+1VG\"; dkim-atps=neutral"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 45tLS742Ryz9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 24 Jul 2019 00:28:22 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9BE7483E0F;\n\tTue, 23 Jul 2019 14:28:20 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Z9o8GcCn44ES; Tue, 23 Jul 2019 14:28:18 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9CCFD81438;\n\tTue, 23 Jul 2019 14:28:18 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 4722A1BF2B5\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 23 Jul 2019 14:15:24 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3CEE9844B4\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 23 Jul 2019 14:15:24 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id LqvfsHidDcCl for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 23 Jul 2019 14:15:21 +0000 (UTC)",
            "from mail-pg1-f193.google.com (mail-pg1-f193.google.com\n\t[209.85.215.193])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 883E6836CE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 23 Jul 2019 14:15:21 +0000 (UTC)",
            "by mail-pg1-f193.google.com with SMTP id n9so13285087pgc.1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 23 Jul 2019 07:15:21 -0700 (PDT)",
            "from suzukaze.ipads-lab.se.sjtu.edu.cn ([89.31.126.54])\n\tby smtp.gmail.com with ESMTPSA id\n\tq63sm56749233pfb.81.2019.07.23.07.15.18\n\t(version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);\n\tTue, 23 Jul 2019 07:15:20 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=0BVMTUlp2bfNRSz5dz/R36KBXDX+K7L4DCHaXHFSPt8=;\n\tb=rT8A+1VGxtNVUW8o8mxCW/NcaATjGkEd9EatcSBS5FLLGzx+Qz+YiTn9i2sFqD0/Qd\n\tBzLZVW3Qg+WCegTSu9Yt9i3UOJlHSP06RinE5r1jIYZX0c+6cuuajA40G+2geW54IL9t\n\tj9/ZPdwL1i4lND6Spz01YfoiAJxTU7eQB0UdtrgNPMv9L2dj4eJfn50gK2JmHruLQXPc\n\t4Su2iSG0w+6RJPNzuzEesd5TATN+zbo7iuTbExnfpfZoBS/jKCi8RMHAZfedni4mr7uz\n\tsWMBRJ4ZswBMrP2DCneVyhcbDHQJey8wkhWefM5+T6cLzyzOIxl9Z/FlVxf9F2c2FGvo\n\tJZ+Q==",
        "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:mime-version\n\t:content-transfer-encoding;\n\tbh=0BVMTUlp2bfNRSz5dz/R36KBXDX+K7L4DCHaXHFSPt8=;\n\tb=hvR6k1yEOoR3Kq0yOsv6Qju0pnw0WRfqgqAaA76UG118PvfA8Sl0if5eUwJwEZleYr\n\tQx5zqXdu/gj00vMAbn8Q9dH4nVauk6uU+PYyPaeXdIlGZ0TkqwOOfur7iU/T8Y9Uhp1H\n\tINmeb0rNrWa0MDmntqvgtSe9hBevhK5wi92TxIS6GVKl2n5OXGVGO8SlGVF4s05vvrqw\n\tcdEurFgr9GXcyhUBhMRG03CJv54ayRHL4VelrrOyVA00x6VI4SfZRcADede1uQENBFen\n\t9m/Qu7ePGWQcltsDaIF5PfUD3CV1OUsz7NbTvxS1Eh3R9UEenBT/tEZCwQ0vKJfVCqdb\n\tsStg==",
        "X-Gm-Message-State": "APjAAAWE2ChsJ/Eo4Lv6NSqrZY/fJU+sI0sJ8zwglG79Jb5iX0fhVDfD\n\tL8R170PML2nnBTE2RvbVyKAzpfTTnRw=",
        "X-Google-Smtp-Source": "APXvYqzC27mCAEmKlo9WKJde4cIOGMtKbosyOsAzkOawPbrvyYJwreSVs7qNA6HSigDFyqSXBiw3Pw==",
        "X-Received": "by 2002:a17:90a:214e:: with SMTP id\n\ta72mr41119575pje.0.1563891321169; \n\tTue, 23 Jul 2019 07:15:21 -0700 (PDT)",
        "From": "Chuhong Yuan <hslester96@gmail.com>",
        "To": "",
        "Date": "Tue, 23 Jul 2019 22:15:13 +0800",
        "Message-Id": "<20190723141513.5749-1-hslester96@gmail.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "MIME-Version": "1.0",
        "X-Mailman-Approved-At": "Tue, 23 Jul 2019 14:28:17 +0000",
        "Subject": "[Intel-wired-lan] [PATCH] e1000e: Use dev_get_drvdata where possible",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "netdev@vger.kernel.org, Chuhong Yuan <hslester96@gmail.com>,\n\tlinux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org,\n\t\"David S . Miller\" <davem@davemloft.net>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Instead of using to_pci_dev + pci_get_drvdata,\nuse dev_get_drvdata to make code simpler.\n\nSigned-off-by: Chuhong Yuan <hslester96@gmail.com>\n---\n drivers/net/ethernet/intel/e1000e/netdev.c | 7 +++----\n 1 file changed, 3 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c\nindex e4baa13b3cda..fa2755849c54 100644\n--- a/drivers/net/ethernet/intel/e1000e/netdev.c\n+++ b/drivers/net/ethernet/intel/e1000e/netdev.c\n@@ -6297,7 +6297,7 @@ static void e1000e_flush_lpic(struct pci_dev *pdev)\n \n static int e1000e_pm_freeze(struct device *dev)\n {\n-\tstruct net_device *netdev = pci_get_drvdata(to_pci_dev(dev));\n+\tstruct net_device *netdev = dev_get_drvdata(dev);\n \tstruct e1000_adapter *adapter = netdev_priv(netdev);\n \n \tnetif_device_detach(netdev);\n@@ -6630,7 +6630,7 @@ static int __e1000_resume(struct pci_dev *pdev)\n #ifdef CONFIG_PM_SLEEP\n static int e1000e_pm_thaw(struct device *dev)\n {\n-\tstruct net_device *netdev = pci_get_drvdata(to_pci_dev(dev));\n+\tstruct net_device *netdev = dev_get_drvdata(dev);\n \tstruct e1000_adapter *adapter = netdev_priv(netdev);\n \n \te1000e_set_interrupt_capability(adapter);\n@@ -6679,8 +6679,7 @@ static int e1000e_pm_resume(struct device *dev)\n \n static int e1000e_pm_runtime_idle(struct device *dev)\n {\n-\tstruct pci_dev *pdev = to_pci_dev(dev);\n-\tstruct net_device *netdev = pci_get_drvdata(pdev);\n+\tstruct net_device *netdev = dev_get_drvdata(dev);\n \tstruct e1000_adapter *adapter = netdev_priv(netdev);\n \tu16 eee_lp;\n \n",
    "prefixes": []
}