get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217487,
    "url": "http://patchwork.ozlabs.org/api/patches/2217487/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260329163613.366885-2-thorsten.blum@linux.dev/",
    "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": "<20260329163613.366885-2-thorsten.blum@linux.dev>",
    "list_archive_url": null,
    "date": "2026-03-29T16:36:13",
    "name": "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/people/89400/?format=api",
        "name": "Thorsten Blum",
        "email": "thorsten.blum@linux.dev"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260329163613.366885-2-thorsten.blum@linux.dev/mbox/",
    "series": [
        {
            "id": 497929,
            "url": "http://patchwork.ozlabs.org/api/series/497929/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=497929",
            "date": "2026-03-29T16:36:13",
            "name": "i2c: change return type to bool for i2c_check_functionality",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497929/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217487/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217487/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-16858-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=W5xa7si8;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-i2c+bounces-16858-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=\"W5xa7si8\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=95.215.58.183",
            "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 sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fkKnK6Twnz1xrn\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 03:38:13 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id D23263005A87\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 16:37:34 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id DC862381B13;\n\tSun, 29 Mar 2026 16:36:31 +0000 (UTC)",
            "from out-183.mta1.migadu.com (out-183.mta1.migadu.com\n [95.215.58.183])\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 157993815D1\n\tfor <linux-i2c@vger.kernel.org>; Sun, 29 Mar 2026 16:36:29 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774802191; cv=none;\n b=urU4jYkkkvFBMrGxSCjUHUAdhyATwFjhxDB+F2iAuJd1OcfqF63SSeYyWwE27S5RBvGlFY1c6PvAgZd/5QwGUJR6e6EnKMp82v6UJ3ivtqcDlLzCWwWiNDFIflUEoHVddy4hfZQT91Kpi5AUbOCrLq0jl79FUWpdy1anAinitE4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774802191; c=relaxed/simple;\n\tbh=/fQxde6GwWzc9iNzwFqwm+1/SSmHBFT0PkWwBa4Erlk=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=UjGer7Cr2Xq3yaa5Gz/OioODcRXp02IqA+JXTbr97as1L6209aHuqsAc7gU5V2jCuHd/eVXlUMiZpJaiOHDyZKG/HFsTmqh9mHY7n+L1fh6qUFU2h2yUNWiht1iLSfmn49JZ93XejcIuraZ5ZLzAbQe7cpTl1VKXxKUvqAOxhfA=",
        "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=W5xa7si8; arc=none smtp.client-ip=95.215.58.183",
        "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=1774802188;\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=W5xa7si8i8Mososrpyk2R+wD2TKBotbKLW5jounWyDZjOqkh534M6Wni9Na2FzTnyHxrCu\n\tOquBudwbNXWIidvaiIG2az4eZyCzYzVTqGUkyC3VlPpwiDvcWypCkZ6vrSBocCIK6+gw9e\n\tfioYDQiHn4uihtzyE/LcwnsPiaLZ6Nw=",
        "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] i2c: change return type to bool for i2c_check_functionality",
        "Date": "Sun, 29 Mar 2026 18:36:13 +0200",
        "Message-ID": "<20260329163613.366885-2-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=owGbwMvMwCUWt7pQ4caZUj3G02pJDJknQ/7+NFJ1DovSe20xd9fKnddZr0zjX/l8wTun+/+nb\n zu+ZWLDoo5SFgYxLgZZMUWWB7N+zPAtrancZBKxE2YOKxPIEAYuTgGYyO+VjAwb5E6J5azf929i\n zLWLK068vbbk05SdsiwbEmLOR3yPn6crwsgwu+zztthZC9hd2ph2zjy5Qe3x3NTACtl7XGstAku\n aXd+zAgA=",
        "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": []
}