Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2220042/?format=api
{ "id": 2220042, "url": "http://patchwork.ozlabs.org/api/patches/2220042/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260405-ti-ads7950-facelift-v5-2-1f980ed3cf9e@gmail.com/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api", "name": "Linux GPIO development", "link_name": "linux-gpio", "list_id": "linux-gpio.vger.kernel.org", "list_email": "linux-gpio@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260405-ti-ads7950-facelift-v5-2-1f980ed3cf9e@gmail.com>", "list_archive_url": null, "date": "2026-04-06T04:39:24", "name": "[v5,2/4] iio: adc: ti-ads7950: simplify check for spi_setup() failures", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3b848a8925ac0fff33eba967a114591678dc9748", "submitter": { "id": 695, "url": "http://patchwork.ozlabs.org/api/people/695/?format=api", "name": "Dmitry Torokhov", "email": "dmitry.torokhov@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260405-ti-ads7950-facelift-v5-2-1f980ed3cf9e@gmail.com/mbox/", "series": [ { "id": 498820, "url": "http://patchwork.ozlabs.org/api/series/498820/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=498820", "date": "2026-04-06T04:39:22", "name": "ti-ads7950: fix gpio handling and facelift", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/498820/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220042/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220042/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-34695-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-gpio@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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=FB70900V;\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-gpio+bounces-34695-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"FB70900V\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=74.125.82.43", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpxVX1Ydqz1yFt\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 14:41:24 +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 749E33024A51\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 6 Apr 2026 04:39:37 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E58C03563CD;\n\tMon, 6 Apr 2026 04:39:34 +0000 (UTC)", "from mail-dl1-f43.google.com (mail-dl1-f43.google.com\n [74.125.82.43])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D52A3314A1\n\tfor <linux-gpio@vger.kernel.org>; Mon, 6 Apr 2026 04:39:33 +0000 (UTC)", "by mail-dl1-f43.google.com with SMTP id\n a92af1059eb24-12776bebe9fso8410548c88.1\n for <linux-gpio@vger.kernel.org>;\n Sun, 05 Apr 2026 21:39:33 -0700 (PDT)", "from dtor-ws.sjc.corp.google.com\n ([2a00:79e0:2ebe:8:fe13:98b9:9e98:d1bb])\n by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-12bed93f861sm15182005c88.0.2026.04.05.21.39.30\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 21:39:31 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775450374; cv=none;\n b=lTwvp/BepXjY25Wb6JA8ewRHQJYlLDVv3wbNP4PZpaF/sZ3/KbZBbKmfRQSe1LHGZkvx6zR3FkLfUe5AD4kuId1AN5oFNItByus7jDbF1O2X7Dm37QRsA/iJE9tFjj8H6UBRLoEp9w6njGgExIeYEHTxtAo3gxqZRCVBPQyTYKI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775450374; c=relaxed/simple;\n\tbh=exu8oRPFvaUwd/x6xwtOQbe+s0ME5lDwo7ojHbgx33s=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=uyhiQUqg07xXHO0C1+gg+H+nI3GDN6S1iWo6F9Cr9Ip9m1tBcrOLAFw9VTyjN4hIuXyve6lXZ/g8CcZYilkBdwykUN3Ve0yDS9bS3l16D1xuLnATumqXszwjJiHSViQvYAkfT7UA+ZwjhPNZw7DNnaRZBvl8pNJgDmEzGspO5ZI=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=FB70900V; arc=none smtp.client-ip=74.125.82.43", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775450373; x=1776055173;\n darn=vger.kernel.org;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to;\n bh=Zh6XhPAF80uBHigYDps0enG5D0ugVfrEjPXkEuqC+6M=;\n b=FB70900V8Rk7MbvjQ7qIQiSo9WfkwzLw/0VYrFMS/YBDsE+pZ5WYVNVQjXNw8hZ3Vq\n QoG55oqujhBNBuTkRHLBHfExPFm06qDfXCUKcrqY95mZ7Ax4b5Uvut2xD7PqatBcz/nd\n DqdAwyN0e8uDuz2tgkB7/oh++lJYqi8I80JfIi5FFD1iYvhqn8oFccAREhGTWgLMnx3E\n ydXBeJQ4ECjGRGn6XXYajWNvbaA9fPWhYTaHKycFWs71TJSQcxIbTAmFVx6IBiMXU8Q3\n biXE4VrGmadfWtCSitgFd7pu0emcipJlm/kzRr3iF7zjI58CwJRVb6LE7z/c95yRpdtk\n 3rYQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775450373; x=1776055173;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=Zh6XhPAF80uBHigYDps0enG5D0ugVfrEjPXkEuqC+6M=;\n b=jcy1imzs4x48IpM78G+4a6Cu0Q0EhukhpMtEmduzZfbTUCdKgYRlm0wyPjCUD0J66K\n WkNbnVXtQ8WIJlJJtjGdUOZ9XACED/S53cYDtpvlOzM7Yc+N4H6PWniSlFYvkX/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X-Received": "by 2002:a05:7022:23a4:b0:12a:8176:f3b1 with SMTP id\n a92af1059eb24-12bfb6ed00cmr5864357c88.6.1775450372713;\n Sun, 05 Apr 2026 21:39:32 -0700 (PDT)", "From": "Dmitry Torokhov <dmitry.torokhov@gmail.com>", "Date": "Sun, 05 Apr 2026 21:39:24 -0700", "Subject": "[PATCH v5 2/4] iio: adc: ti-ads7950: simplify check for\n spi_setup() failures", "Precedence": "bulk", "X-Mailing-List": "linux-gpio@vger.kernel.org", "List-Id": "<linux-gpio.vger.kernel.org>", "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260405-ti-ads7950-facelift-v5-2-1f980ed3cf9e@gmail.com>", "References": "<20260405-ti-ads7950-facelift-v5-0-1f980ed3cf9e@gmail.com>", "In-Reply-To": "<20260405-ti-ads7950-facelift-v5-0-1f980ed3cf9e@gmail.com>", "To": "Jonathan Cameron <jic23@kernel.org>,\n David Lechner <dlechner@baylibre.com>", "Cc": "=?utf-8?q?Nuno_S=C3=A1?= <nuno.sa@analog.com>,\n Andy Shevchenko <andy@kernel.org>, Linus Walleij <linusw@kernel.org>,\n Bartosz Golaszewski <brgl@kernel.org>, linux-iio@vger.kernel.org,\n linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,\n Jonathan Cameron <Jonathan.Cameron@huawei.com>,\n Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>", "X-Mailer": "b4 0.16-dev-6911d" }, "content": "spi_setup() specifies that it returns 0 on success or negative error on\nfailure. Therefore we can simply check for the return code being 0 or\nnot.\n\nReviewed-by: David Lechner <dlechner@baylibre.com>\nReviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>\nSigned-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>\n---\n drivers/iio/adc/ti-ads7950.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/iio/adc/ti-ads7950.c b/drivers/iio/adc/ti-ads7950.c\nindex 6e9ea9cc33bf..c31c706c92a9 100644\n--- a/drivers/iio/adc/ti-ads7950.c\n+++ b/drivers/iio/adc/ti-ads7950.c\n@@ -520,7 +520,7 @@ static int ti_ads7950_probe(struct spi_device *spi)\n \tspi->bits_per_word = 16;\n \tspi->mode |= SPI_CS_WORD;\n \tret = spi_setup(spi);\n-\tif (ret < 0) {\n+\tif (ret) {\n \t\tdev_err(&spi->dev, \"Error in spi setup\\n\");\n \t\treturn ret;\n \t}\n", "prefixes": [ "v5", "2/4" ] }