Show a patch.

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

{
    "id": 1330,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/1330/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1330/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20190602130435.18780-2-jacopo@jmondi.org>",
    "date": "2019-06-02T13:04:30",
    "name": "[libcamera-devel,1/6] libcamera: camera_sensor: Add dev() operation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "0770c93b4e6201da3996c770b22fdcf3b5055964",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": {
        "id": 15,
        "url": "https://patchwork.libcamera.org/api/1.1/users/15/?format=api",
        "username": "jmondi",
        "first_name": "Jacopo",
        "last_name": "Mondi",
        "email": "jacopo@jmondi.org"
    },
    "mbox": "https://patchwork.libcamera.org/patch/1330/mbox/",
    "series": [
        {
            "id": 333,
            "url": "https://patchwork.libcamera.org/api/1.1/series/333/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=333",
            "date": "2019-06-02T13:04:29",
            "name": "libcamera: v4l2_controls: Add support for V4L2 controls",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/333/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1330/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1330/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay11.mail.gandi.net (relay11.mail.gandi.net\n\t[217.70.178.231])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B1F8460BFA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  2 Jun 2019 15:03:44 +0200 (CEST)",
            "from uno.homenet.telecomitalia.it (unknown [79.35.79.123])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay11.mail.gandi.net (Postfix) with ESMTPSA id 17E55100005;\n\tSun,  2 Jun 2019 13:03:43 +0000 (UTC)"
        ],
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sun,  2 Jun 2019 15:04:30 +0200",
        "Message-Id": "<20190602130435.18780-2-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190602130435.18780-1-jacopo@jmondi.org>",
        "References": "<20190602130435.18780-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 1/6] libcamera: camera_sensor: Add dev()\n\toperation",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "X-List-Received-Date": "Sun, 02 Jun 2019 13:03:44 -0000"
    },
    "content": "Add dev() operation to the CameraSensor class to access the\nV4L2Subdevice backing the camera sensor.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/camera_sensor.cpp       | 6 ++++++\n src/libcamera/include/camera_sensor.h | 1 +\n 2 files changed, 7 insertions(+)",
    "diff": "diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp\nindex 2b9d8fa593c1..8cbef8bccbef 100644\n--- a/src/libcamera/camera_sensor.cpp\n+++ b/src/libcamera/camera_sensor.cpp\n@@ -130,6 +130,12 @@ int CameraSensor::init()\n  * \\return The sensor media entity\n  */\n \n+/**\n+ * \\fn CameraSensor::dev()\n+ * \\brief Retrieve the sensor V4L2 subdevice\n+ * \\return The sensor V4L2 subdevice\n+ */\n+\n /**\n  * \\fn CameraSensor::mbusCodes()\n  * \\brief Retrieve the media bus codes supported by the camera sensor\ndiff --git a/src/libcamera/include/camera_sensor.h b/src/libcamera/include/camera_sensor.h\nindex b823480241a7..6cdf833a27bf 100644\n--- a/src/libcamera/include/camera_sensor.h\n+++ b/src/libcamera/include/camera_sensor.h\n@@ -33,6 +33,7 @@ public:\n \tint init();\n \n \tconst MediaEntity *entity() const { return entity_; }\n+\tV4L2Subdevice *dev() const { return subdev_; }\n \tconst std::vector<unsigned int> &mbusCodes() const { return mbusCodes_; }\n \tconst std::vector<Size> &sizes() const { return sizes_; }\n \tconst Size &resolution() const;\n",
    "prefixes": [
        "libcamera-devel",
        "1/6"
    ]
}