Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/803331/?format=api
{ "id": 803331, "url": "http://patchwork.ozlabs.org/api/1.2/patches/803331/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/1503072418-6887-3-git-send-email-bhumirks@gmail.com/", "project": { "id": 35, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<1503072418-6887-3-git-send-email-bhumirks@gmail.com>", "list_archive_url": null, "date": "2017-08-18T16:06:58", "name": "[2/2,media] usb: make i2c_algorithm const", "commit_ref": null, "pull_url": null, "state": "awaiting-upstream", "archived": false, "hash": "b0d69889d8148db10e0184630c8144081bf08b77", "submitter": { "id": 69882, "url": "http://patchwork.ozlabs.org/api/1.2/people/69882/?format=api", "name": "Bhumika Goyal", "email": "bhumirks@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/1503072418-6887-3-git-send-email-bhumirks@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/803331/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/803331/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-i2c-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"aYHn7mJn\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xYp0Q734Yz9t2c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 19 Aug 2017 02:08:22 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752343AbdHRQIG (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tFri, 18 Aug 2017 12:08:06 -0400", "from mail-pg0-f67.google.com ([74.125.83.67]:33097 \"EHLO\n\tmail-pg0-f67.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752315AbdHRQIF (ORCPT\n\t<rfc822; linux-i2c@vger.kernel.org>); Fri, 18 Aug 2017 12:08:05 -0400", "by mail-pg0-f67.google.com with SMTP id n4so811884pgn.0;\n\tFri, 18 Aug 2017 09:08:04 -0700 (PDT)", "from gmail.com ([117.196.118.112])\n\tby smtp.gmail.com with ESMTPSA id\n\te131sm10388075pgc.64.2017.08.18.09.07.58\n\t(version=TLS1 cipher=AES128-SHA bits=128/128);\n\tFri, 18 Aug 2017 09:08:02 -0700 (PDT)", "by gmail.com (sSMTP sendmail emulation);\n\tFri, 18 Aug 2017 21:37:54 +0530" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=P/q3CpOWjaHpLDQwVDXQVV7wbxuQe+NUpf+9sfwi1Qs=;\n\tb=aYHn7mJn/J0ZklxJCi+d7ySfFEHN+hWx/MpFq24PZ23WtQ88VVQijZ/9opgZgTjT7e\n\th2ReFRMWUQeVKauoFobZeiSVbHYw8VKMqGU3eu0SVtw1SE6PaSZOGEdevAw7uQAOvch9\n\t+c/dHQVol2fPMPIgUPKY++98glVMhBzE7Qm3XCefYSErkqx14tz3Ys15lEjSqLLGcjhC\n\tXQOSNATCSNpCwD0TCSczXhChdHlLzndm1u7X89JFy0Pdyy+thmOWW9sQzciQFYw74Ues\n\tJSQ59xoNm9zsNs85leeFbcyTYZj80X/k5ZM9YZ9uBGwaCMgIWzHmhm9YiRbU/0jMLLNs\n\tBP/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:in-reply-to\n\t:references;\n\tbh=P/q3CpOWjaHpLDQwVDXQVV7wbxuQe+NUpf+9sfwi1Qs=;\n\tb=X+Y/ANuOAHxfHLJj/Ezz34ZhcsMYY4CVCOwSUyNfzfiFMQN0ULTgTqYoxSe9iAU9Rk\n\tLb11QpUmsf8eZ83RL01+DltNWv7QWOMD5HQ9ytcc3j5x/9SlBl/1VeqJ/fk3PlXnD73i\n\tlfEbcAvEr46c12vGwvZ4ViiojXt2niypTseN6/sJ7qJjkbHR+MyyryuDHPzf85pqvoQK\n\tl9tUa59h2L0Jngv1GITHIOro0T6VV9kRhIBYOfWSTP3ra6bSyex/brXzZHg1nmwr60f3\n\tKKuFvJ+3l6YgJb/59aWDYaWnmnm2OQARPewb51pv3p9h8Bb2nKMyzUjH2m76QoR+dVQ8\n\tpS2g==", "X-Gm-Message-State": "AHYfb5jTz7lr2QUgjMgxTxbH8x6W3qHsvsfGsEmdCr3MML1Bu5YoeqKu\n\tm+znccF5b/nPHg==", "X-Received": "by 10.84.132.129 with SMTP id e1mr10146983ple.316.1503072484493; \n\tFri, 18 Aug 2017 09:08:04 -0700 (PDT)", "From": "Bhumika Goyal <bhumirks@gmail.com>", "To": "julia.lawall@lip6.fr, vz@mleia.com, slemieux.tyco@gmail.com,\n\twsa@the-dreams.de, gxt@mprc.pku.edu.cn, mchehab@kernel.org,\n\tisely@pobox.com, linux-arm-kernel@lists.infradead.org,\n\tlinux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tlinux-media@vger.kernel.org", "Cc": "Bhumika Goyal <bhumirks@gmail.com>", "Subject": "[PATCH 2/2] [media] usb: make i2c_algorithm const", "Date": "Fri, 18 Aug 2017 21:36:58 +0530", "Message-Id": "<1503072418-6887-3-git-send-email-bhumirks@gmail.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1503072418-6887-1-git-send-email-bhumirks@gmail.com>", "References": "<1503072418-6887-1-git-send-email-bhumirks@gmail.com>", "Sender": "linux-i2c-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-i2c.vger.kernel.org>", "X-Mailing-List": "linux-i2c@vger.kernel.org" }, "content": "Make these const as they are only used in a copy operation or\nare stored in the algo field of i2c_adapter structure, which is const.\n\nSigned-off-by: Bhumika Goyal <bhumirks@gmail.com>\n---\n drivers/media/usb/au0828/au0828-i2c.c | 2 +-\n drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/media/usb/au0828/au0828-i2c.c b/drivers/media/usb/au0828/au0828-i2c.c\nindex 42b352b..a028e36 100644\n--- a/drivers/media/usb/au0828/au0828-i2c.c\n+++ b/drivers/media/usb/au0828/au0828-i2c.c\n@@ -329,7 +329,7 @@ static u32 au0828_functionality(struct i2c_adapter *adap)\n \treturn I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;\n }\n \n-static struct i2c_algorithm au0828_i2c_algo_template = {\n+static const struct i2c_algorithm au0828_i2c_algo_template = {\n \t.master_xfer\t= i2c_xfer,\n \t.functionality\t= au0828_functionality,\n };\ndiff --git a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c\nindex 20a52b7..cfa8fbe 100644\n--- a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c\n+++ b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c\n@@ -514,7 +514,7 @@ static u32 pvr2_i2c_functionality(struct i2c_adapter *adap)\n \treturn I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;\n }\n \n-static struct i2c_algorithm pvr2_i2c_algo_template = {\n+static const struct i2c_algorithm pvr2_i2c_algo_template = {\n \t.master_xfer = pvr2_i2c_xfer,\n \t.functionality = pvr2_i2c_functionality,\n };\n", "prefixes": [ "2/2", "media" ] }