get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2225818,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2225818/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260421161607.61314-3-thorsten.blum@linux.dev/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260421161607.61314-3-thorsten.blum@linux.dev>",
    "date": "2026-04-21T16:16:09",
    "name": "[RESEND] i2c: change return type to bool for i2c_check_functionality",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4fd5f4906bf13e50db3a45fd2c8a07efe4551493",
    "submitter": {
        "id": 89400,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/89400/?format=api",
        "name": "Thorsten Blum",
        "email": "thorsten.blum@linux.dev"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260421161607.61314-3-thorsten.blum@linux.dev/mbox/",
    "series": [
        {
            "id": 500848,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500848/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=500848",
            "date": "2026-04-21T16:16:09",
            "name": "[RESEND] i2c: change return type to bool for i2c_check_functionality",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500848/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225818/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225818/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-17120-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 (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=Lr8rHzVF;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-i2c+bounces-17120-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev\n header.b=\"Lr8rHzVF\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=91.218.175.188",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.dev"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4g0SLx43B4z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 02:22:49 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id DEB3A302BE01\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 16:16:44 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 26355364038;\n\tTue, 21 Apr 2026 16:16:44 +0000 (UTC)",
            "from out-188.mta0.migadu.com (out-188.mta0.migadu.com\n [91.218.175.188])\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 573DA1AF0BB\n\tfor <linux-i2c@vger.kernel.org>; Tue, 21 Apr 2026 16:16:41 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776788203; cv=none;\n b=NlaWV5f76kZmYgQv8OzS7vZdBqsvfdlkum6+92CP8rrcoeV3hVnf5rCrzCZJG/6zw6PnrHpU3QLFRrjV8NImt3HDZerMbh3w9Cvbj1oXAv/5ovBhnsRt8VXYb/PCCD6ixB3kQ4Thh3IWHui/lYgcSJsMFvybtU4NC/4Fa/vMd+c=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776788203; c=relaxed/simple;\n\tbh=/fQxde6GwWzc9iNzwFqwm+1/SSmHBFT0PkWwBa4Erlk=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=Pg64eLNOkBZcmg5xQcPcDP8+tHU4xmZdWT3ArtA9R+17zDz9N13+eyERWCgWedaaJk7EgGICb/sUX1ivWtB8ouuZNRAYF527bRRoXVMknt1KmDzpIG+IDI0rmtFWS0NFLNIUG/r9dnsG+xrYD9xHzXAoo2tMQe5lXZsND2ZKE50=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev;\n spf=pass smtp.mailfrom=linux.dev;\n dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev\n header.b=Lr8rHzVF; arc=none smtp.client-ip=91.218.175.188",
        "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n\tt=1776788199;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding;\n\tbh=KTRrIi7tM0u21ks32XbxVIleTJ84Vy5LeGCOm55VgAY=;\n\tb=Lr8rHzVFgjxHV2qgECS5wucppIKiKt3k3qHNochn/I6pcnu+YuUDPWiVirWHR+tVR+4R1p\n\tg8TTf+zaa5SEJItyEb8kAMY6mimwBnM3c1/X7ZxVaG/nT7po2lrPWiabFa2EA/7N7cUUet\n\tVvKh60hZ0A9W2/zd+fno6eJEjztSkVY=",
        "From": "Thorsten Blum <thorsten.blum@linux.dev>",
        "To": "Wolfram Sang <wsa+renesas@sang-engineering.com>",
        "Cc": "Thorsten Blum <thorsten.blum@linux.dev>,\n\tlinux-i2c@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH RESEND] i2c: change return type to bool for\n i2c_check_functionality",
        "Date": "Tue, 21 Apr 2026 18:16:09 +0200",
        "Message-ID": "<20260421161607.61314-3-thorsten.blum@linux.dev>",
        "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",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=921;\n i=thorsten.blum@linux.dev; h=from:subject;\n bh=/fQxde6GwWzc9iNzwFqwm+1/SSmHBFT0PkWwBa4Erlk=;\n b=owGbwMvMwCUWt7pQ4caZUj3G02pJDJnPFx3/aaTqHBal99pi7q6VO6+zXpnGv/L5gndO9/9P3\n 3Z8y8SGRR2lLAxiXAyyYoosD2b9mOFbWlO5ySRiJ8wcViaQIQxcnAIwEbP3DH+l7sREca9feu/C\n FjfzySH7V+yIKyngDEwqY73RFXh/Le8Mhn9qLNlaDrrfM8+x7q58qqaTqpfi+bVWoXf9zkZJz+a\n NjjwA",
        "X-Developer-Key": "i=thorsten.blum@linux.dev; a=openpgp;\n fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4",
        "Content-Transfer-Encoding": "8bit",
        "X-Migadu-Flow": "FLOW_OUT"
    },
    "content": "i2c_check_functionality() returns a bool - change the return type from\nint to bool and update the comment accordingly.\n\nSigned-off-by: Thorsten Blum <thorsten.blum@linux.dev>\n---\n include/linux/i2c.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/include/linux/i2c.h b/include/linux/i2c.h\nindex 20fd41b51d5c..6737bcbc5d7a 100644\n--- a/include/linux/i2c.h\n+++ b/include/linux/i2c.h\n@@ -919,8 +919,8 @@ static inline u32 i2c_get_functionality(struct i2c_adapter *adap)\n \treturn adap->algo->functionality(adap);\n }\n \n-/* Return 1 if adapter supports everything we need, 0 if not. */\n-static inline int i2c_check_functionality(struct i2c_adapter *adap, u32 func)\n+/* Return true if adapter supports everything we need, false if not. */\n+static inline bool i2c_check_functionality(struct i2c_adapter *adap, u32 func)\n {\n \treturn (func & i2c_get_functionality(adap)) == func;\n }\n",
    "prefixes": [
        "RESEND"
    ]
}