get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196163,
    "url": "http://patchwork.ozlabs.org/api/patches/2196163/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260213-i2c-xiic-v11-4-5d18aea11bde@nexthop.ai/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/projects/35/?format=api",
        "name": "Linux I2C development",
        "link_name": "linux-i2c",
        "list_id": "linux-i2c.vger.kernel.org",
        "list_email": "linux-i2c@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260213-i2c-xiic-v11-4-5d18aea11bde@nexthop.ai>",
    "list_archive_url": null,
    "date": "2026-02-13T00:15:19",
    "name": "[v11,4/7] i2c: xiic: cosmetic cleanup",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "81eefe63efef265194a472af9fb76f4fc3db44a9",
    "submitter": {
        "id": 92480,
        "url": "http://patchwork.ozlabs.org/api/people/92480/?format=api",
        "name": "Abdurrahman Hussain via B4 Relay",
        "email": "devnull+abdurrahman.nexthop.ai@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260213-i2c-xiic-v11-4-5d18aea11bde@nexthop.ai/mbox/",
    "series": [
        {
            "id": 492044,
            "url": "http://patchwork.ozlabs.org/api/series/492044/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=492044",
            "date": "2026-02-13T00:15:16",
            "name": "i2c: xiic: use generic device property accessors",
            "version": 11,
            "mbox": "http://patchwork.ozlabs.org/series/492044/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196163/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196163/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-15961-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-i2c@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=dBJgHY44;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-i2c+bounces-15961-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"dBJgHY44\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fBt4b3p9tz1xxM\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 11:16:15 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 7413A30116A8\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 00:15:40 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5D199225417;\n\tFri, 13 Feb 2026 00:15:23 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E621B20DD51;\n\tFri, 13 Feb 2026 00:15:22 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPS id A3D0FC2BCB3;\n\tFri, 13 Feb 2026 00:15:22 +0000 (UTC)",
            "from aws-us-west-2-korg-lkml-1.web.codeaurora.org\n (localhost.localdomain [127.0.0.1])\n\tby smtp.lore.kernel.org (Postfix) with ESMTP id 7A4A6EEA872;\n\tFri, 13 Feb 2026 00:15:22 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770941723; cv=none;\n b=ld5MeC7oBAC9LaBqgeoSqxc6e1ue71QBFogVp7KvEqXWE3MqJvHND5HiLOsvJ4S9HXr/mBv8DLRQMoeUW+l6utVbG3+3tyscxYRvpqHwFOeZTtzz6tvyGM6VpgOmFv6pIApLC1YsmsKtC6oJ8PBHRR3/apHY3q7zXr35xIR0Ne8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770941723; c=relaxed/simple;\n\tbh=0cagQQWs1EQdChAxlxHuUUZ51gQ+OoWY5PxjVHvtV3E=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=f5uRSkCvQ7dWM/1M66xRBTSFACG1w253xbXwAsR01cm7vo7FSlAVJjOD7YMOmO/klhIJFjEzrVsxHXGhsOrcy76gEiyeo1u8LYHYJtGk70BtxoyzBG1fLSwCnFGCHynCRSXs1WlYTtR1g00aYoFZe2dgMpxfSNb24pjVBH6OnKc=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=dBJgHY44; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1770941722;\n\tbh=0cagQQWs1EQdChAxlxHuUUZ51gQ+OoWY5PxjVHvtV3E=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From;\n\tb=dBJgHY44dTIuOY9xXALHU9Y/QCqRKAHspXUjwHRr34EaF0+tLS9UWE8A9PreFAjpO\n\t i6BL4QzyR407nVAQvGJ/cuaNur5mEI/Vfg3x18glhy66hsmNmTHPfgkdatH8R1UkFd\n\t R2W7GTTkbzhrAC4ki0qFWNcRIu+xktyeSuxDWVfGw1QTgesnYgSFkxrY0J0eGkB5Se\n\t qqLdoDEz+A1gSfei/kDLBT1BiEJzOcwGlbVMrdA6meoB6xww1v8BAVYTD9xDTfbUp0\n\t /cuHwEu+EaDsqes3AOgKlSt0zf/QjAAnq7z//oWAzoewC44ZTOQNDNGvJFAjmRaMnC\n\t 2aOQGCwqkVDYQ==",
        "From": "Abdurrahman Hussain via B4 Relay\n <devnull+abdurrahman.nexthop.ai@kernel.org>",
        "Date": "Fri, 13 Feb 2026 00:15:19 +0000",
        "Subject": "[PATCH v11 4/7] i2c: xiic: cosmetic cleanup",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-i2c@vger.kernel.org",
        "List-Id": "<linux-i2c.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-i2c+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-i2c+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260213-i2c-xiic-v11-4-5d18aea11bde@nexthop.ai>",
        "References": "<20260213-i2c-xiic-v11-0-5d18aea11bde@nexthop.ai>",
        "In-Reply-To": "<20260213-i2c-xiic-v11-0-5d18aea11bde@nexthop.ai>",
        "To": "Michal Simek <michal.simek@amd.com>, Andi Shyti <andi.shyti@kernel.org>,\n Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,\n Conor Dooley <conor+dt@kernel.org>",
        "Cc": "Andy Shevchenko <andriy.shevchenko@intel.com>,\n linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org,\n linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,\n Abdurrahman Hussain <abdurrahman@nexthop.ai>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1770941721; l=2969;\n i=abdurrahman@nexthop.ai; s=20260119; h=from:subject:message-id;\n bh=4goe1hN23ExSd3bXmlNyi4c8jVT0rjfLxvQAv2IuPoE=;\n b=UG0j3nVRP5W7SvnQm4//0ani0A3FVvsGWRY67oVUvfCso0Nr4yMGnTlpamwnzNcgayMcWb+rV\n 6iFLUqzfA9tDd5RRgCfjO4tJxV4JbKRkZ2+2ER1kRMIdW8v0y/iOHjG",
        "X-Developer-Key": "i=abdurrahman@nexthop.ai; a=ed25519;\n pk=S+ysnf+NwMcBdHBlyKIUEAtaFGSIhQwcJcgcXhq0osg=",
        "X-Endpoint-Received": "by B4 Relay for abdurrahman@nexthop.ai/20260119 with\n auth_id=608",
        "X-Original-From": "Abdurrahman Hussain <abdurrahman@nexthop.ai>",
        "Reply-To": "abdurrahman@nexthop.ai"
    },
    "content": "From: Abdurrahman Hussain <abdurrahman@nexthop.ai>\n\nRe-use dev pointer instead of referencing &pdev->dev everywhere.\n\nReviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>\nSigned-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>\n---\n drivers/i2c/busses/i2c-xiic.c | 26 +++++++++++++-------------\n 1 file changed, 13 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c\nindex 20cee7b6200c..377fa5948c3f 100644\n--- a/drivers/i2c/busses/i2c-xiic.c\n+++ b/drivers/i2c/busses/i2c-xiic.c\n@@ -1429,7 +1429,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \tu8 i;\n \tu32 sr;\n \n-\ti2c = devm_kzalloc(&pdev->dev, sizeof(*i2c), GFP_KERNEL);\n+\ti2c = devm_kzalloc(dev, sizeof(*i2c), GFP_KERNEL);\n \tif (!i2c)\n \t\treturn -ENOMEM;\n \n@@ -1445,13 +1445,13 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \tif (irq < 0)\n \t\treturn irq;\n \n-\tpdata = dev_get_platdata(&pdev->dev);\n+\tpdata = dev_get_platdata(dev);\n \n \t/* hook up driver to tree */\n \tplatform_set_drvdata(pdev, i2c);\n \ti2c->adap = xiic_adapter;\n \ti2c_set_adapdata(&i2c->adap, i2c);\n-\ti2c->adap.dev.parent = &pdev->dev;\n+\ti2c->adap.dev.parent = dev;\n \tdevice_set_node(&i2c->adap.dev, dev_fwnode(dev));\n \tsnprintf(i2c->adap.name, sizeof(i2c->adap.name),\n \t\t DRIVER_NAME \" %s\", pdev->name);\n@@ -1467,9 +1467,10 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \t\treturn dev_err_probe(&pdev->dev, PTR_ERR(i2c->clk),\n \t\t\t\t     \"failed to enable input clock.\\n\");\n \n-\ti2c->dev = &pdev->dev;\n-\tpm_runtime_set_autosuspend_delay(i2c->dev, XIIC_PM_TIMEOUT);\n-\tpm_runtime_use_autosuspend(i2c->dev);\n+\ti2c->dev = dev;\n+\n+\tpm_runtime_set_autosuspend_delay(dev, XIIC_PM_TIMEOUT);\n+\tpm_runtime_use_autosuspend(dev);\n \tret = devm_pm_runtime_set_active_enabled(dev);\n \tif (ret)\n \t\treturn ret;\n@@ -1481,9 +1482,8 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \tif (ret || i2c->i2c_clk > I2C_MAX_FAST_MODE_PLUS_FREQ)\n \t\ti2c->i2c_clk = 0;\n \n-\tret = devm_request_threaded_irq(&pdev->dev, irq, NULL,\n-\t\t\t\t\txiic_process, IRQF_ONESHOT,\n-\t\t\t\t\tpdev->name, i2c);\n+\tret = devm_request_threaded_irq(dev, irq, NULL, xiic_process,\n+\t\t\t\t\tIRQF_ONESHOT, pdev->name, i2c);\n \tif (ret)\n \t\treturn ret;\n \n@@ -1526,21 +1526,21 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \n static void xiic_i2c_remove(struct platform_device *pdev)\n {\n+\tstruct device *dev = &pdev->dev;\n \tstruct xiic_i2c *i2c = platform_get_drvdata(pdev);\n \tint ret;\n \n \t/* remove adapter & data */\n \ti2c_del_adapter(&i2c->adap);\n \n-\tret = pm_runtime_get_sync(i2c->dev);\n-\n+\tret = pm_runtime_get_sync(dev);\n \tif (ret < 0)\n-\t\tdev_warn(&pdev->dev, \"Failed to activate device for removal (%pe)\\n\",\n+\t\tdev_warn(dev, \"Failed to activate device for removal (%pe)\\n\",\n \t\t\t ERR_PTR(ret));\n \telse\n \t\txiic_deinit(i2c);\n \n-\tpm_runtime_put_sync(i2c->dev);\n+\tpm_runtime_put_sync(dev);\n }\n \n static const struct dev_pm_ops xiic_dev_pm_ops = {\n",
    "prefixes": [
        "v11",
        "4/7"
    ]
}