get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 803221,
    "url": "http://patchwork.ozlabs.org/api/patches/803221/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170818125857.13430-1-sakari.ailus@linux.intel.com/",
    "project": {
        "id": 37,
        "url": "http://patchwork.ozlabs.org/api/projects/37/?format=api",
        "name": "Devicetree Bindings",
        "link_name": "devicetree-bindings",
        "list_id": "devicetree.vger.kernel.org",
        "list_email": "devicetree@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170818125857.13430-1-sakari.ailus@linux.intel.com>",
    "list_archive_url": null,
    "date": "2017-08-18T12:58:57",
    "name": "[1/1] dt: bindings: Add a binding for flash devices associated to a sensor",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "9cf2afbdd3ae32acd55f858feb5c2de7dcb82bd6",
    "submitter": {
        "id": 65485,
        "url": "http://patchwork.ozlabs.org/api/people/65485/?format=api",
        "name": "Sakari Ailus",
        "email": "sakari.ailus@linux.intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170818125857.13430-1-sakari.ailus@linux.intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/803221/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/803221/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<devicetree-owner@vger.kernel.org>",
        "X-Original-To": "incoming-dt@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming-dt@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=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xYjnx3HX8z9t3p\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tFri, 18 Aug 2017 22:59:01 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751644AbdHRM67 (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tFri, 18 Aug 2017 08:58:59 -0400",
            "from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:52894 \"EHLO\n\thillosipuli.retiisi.org.uk\" rhost-flags-OK-OK-OK-FAIL)\n\tby vger.kernel.org with ESMTP id S1750944AbdHRM67 (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Fri, 18 Aug 2017 08:58:59 -0400",
            "from lanttu.localdomain (unknown\n\t[IPv6:2001:1bc8:1a6:d3d5::e1:1002])\n\tby hillosipuli.retiisi.org.uk (Postfix) with ESMTP id 45D02600F9;\n\tFri, 18 Aug 2017 15:58:57 +0300 (EEST)"
        ],
        "From": "Sakari Ailus <sakari.ailus@linux.intel.com>",
        "To": "linux-media@vger.kernel.org, robh@kernel.org, jacek.anaszewski@gmail.com",
        "Cc": "linux-leds@vger.kernel.org, devicetree@vger.kernel.org",
        "Subject": "[PATCH 1/1] dt: bindings: Add a binding for flash devices associated\n\tto a sensor",
        "Date": "Fri, 18 Aug 2017 15:58:57 +0300",
        "Message-Id": "<20170818125857.13430-1-sakari.ailus@linux.intel.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "Sender": "devicetree-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<devicetree.vger.kernel.org>",
        "X-Mailing-List": "devicetree@vger.kernel.org"
    },
    "content": "Camera flash drivers (and LEDs) are separate from the sensor devices in\nDT. In order to make an association between the two, provide the\nassociation information to the software.\n\nSigned-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>\n---\nHi Rob and Jacek, others,\n\nI know I've submitted previous versions of this patch that I have changed\nsince getting your acks... that's bad. I realised there will be problems\ndue to the vague referencing in the old version.\n\nInstead of referring to the flash LED controller itself, the references are\nnow suggested to be made to the LEDs explicitly.\n\nWhile most of the time all LEDs are associated to the same camera sensor,\nthere's nothing that suggests that this will always be the case. This will\nwork rather nicely with this change to the V4L2 flash class:\n\n<URL:https://git.linuxtv.org/sailus/media_tree.git/commit/?h=flash&id=ef62781f4468d93ba8328caf7db629add453e01d>\n\nAn alternative to this could be to refer to the LEDs using the LED\ncontroller node and integer arguments. That would require e.g. #led-cells\nproperty to tell how many arguments there are. The actual LEDs also have\ndevice nodes already so I thought using them would probably be a good idea\nso we continue to have a single way to refer to LEDs.\n\nLet me know your thoughts / if you're ok with the patch.\n\n Documentation/devicetree/bindings/media/video-interfaces.txt | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt\nindex 852041a7480c..fee73cf2a714 100644\n--- a/Documentation/devicetree/bindings/media/video-interfaces.txt\n+++ b/Documentation/devicetree/bindings/media/video-interfaces.txt\n@@ -67,6 +67,14 @@ are required in a relevant parent node:\n \t\t    identifier, should be 1.\n  - #size-cells    : should be zero.\n \n+\n+Optional properties\n+-------------------\n+\n+- flash: An array of phandles referring to the flash LED, a sub-node\n+  of the LED driver device node.\n+\n+\n Optional endpoint properties\n ----------------------------\n \n",
    "prefixes": [
        "1/1"
    ]
}