]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: iris: Constify iris_v4l2_file_ops
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 26 Oct 2025 18:11:38 +0000 (20:11 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 6 Nov 2025 10:18:10 +0000 (11:18 +0100)
The iris_v4l2_file_ops structure is never modified. Make it const.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
[bod: drop qcom from patch title for consistency with other patches]
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/iris/iris_vidc.c

index d38d0f6961cd5cb9929e2aecbec7353dcc2d4a7d..c9b881923ef1831baaa86bea7c13c9734dbe6e4b 100644 (file)
@@ -630,7 +630,7 @@ unlock:
        return ret;
 }
 
-static struct v4l2_file_operations iris_v4l2_file_ops = {
+static const struct v4l2_file_operations iris_v4l2_file_ops = {
        .owner                          = THIS_MODULE,
        .open                           = iris_open,
        .release                        = iris_close,