From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Sylwester Nawrocki <s.nawrocki@samsung.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Alim Akhtar <alim.akhtar@samsung.com>, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/12] media: fimc-is: constify local pointers to fimc_vid_cap Date: Sun, 24 Dec 2023 12:49:15 +0100 [thread overview] Message-ID: <20231224114916.111433-11-krzysztof.kozlowski@linaro.org> (raw) In-Reply-To: <20231224114916.111433-1-krzysztof.kozlowski@linaro.org> Constify the local variables pointing to "struct fimc_vid_cap" to annotate the function is not modifying pointed data. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/media/platform/samsung/exynos4-is/fimc-reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-reg.c b/drivers/media/platform/samsung/exynos4-is/fimc-reg.c index 0ed6e22e6c47..edff6e5179cf 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-reg.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-reg.c @@ -598,7 +598,7 @@ static const struct mbus_pixfmt_desc pix_desc[] = { int fimc_hw_set_camera_source(struct fimc_dev *fimc, struct fimc_source_info *source) { - struct fimc_vid_cap *vc = &fimc->vid_cap; + const struct fimc_vid_cap *vc = &fimc->vid_cap; struct fimc_frame *f = &vc->ctx->s_frame; u32 bus_width, cfg = 0; int i; @@ -670,7 +670,7 @@ void fimc_hw_set_camera_offset(struct fimc_dev *fimc, const struct fimc_frame *f int fimc_hw_set_camera_type(struct fimc_dev *fimc, const struct fimc_source_info *source) { - struct fimc_vid_cap *vid_cap = &fimc->vid_cap; + const struct fimc_vid_cap *vid_cap = &fimc->vid_cap; u32 csis_data_alignment = 32; u32 cfg, tmp; -- 2.34.1
WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Sylwester Nawrocki <s.nawrocki@samsung.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Alim Akhtar <alim.akhtar@samsung.com>, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/12] media: fimc-is: constify local pointers to fimc_vid_cap Date: Sun, 24 Dec 2023 12:49:15 +0100 [thread overview] Message-ID: <20231224114916.111433-11-krzysztof.kozlowski@linaro.org> (raw) In-Reply-To: <20231224114916.111433-1-krzysztof.kozlowski@linaro.org> Constify the local variables pointing to "struct fimc_vid_cap" to annotate the function is not modifying pointed data. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/media/platform/samsung/exynos4-is/fimc-reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-reg.c b/drivers/media/platform/samsung/exynos4-is/fimc-reg.c index 0ed6e22e6c47..edff6e5179cf 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-reg.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-reg.c @@ -598,7 +598,7 @@ static const struct mbus_pixfmt_desc pix_desc[] = { int fimc_hw_set_camera_source(struct fimc_dev *fimc, struct fimc_source_info *source) { - struct fimc_vid_cap *vc = &fimc->vid_cap; + const struct fimc_vid_cap *vc = &fimc->vid_cap; struct fimc_frame *f = &vc->ctx->s_frame; u32 bus_width, cfg = 0; int i; @@ -670,7 +670,7 @@ void fimc_hw_set_camera_offset(struct fimc_dev *fimc, const struct fimc_frame *f int fimc_hw_set_camera_type(struct fimc_dev *fimc, const struct fimc_source_info *source) { - struct fimc_vid_cap *vid_cap = &fimc->vid_cap; + const struct fimc_vid_cap *vid_cap = &fimc->vid_cap; u32 csis_data_alignment = 32; u32 cfg, tmp; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-12-24 11:49 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-24 11:49 [PATCH 01/12] media: fimc-lite: drop unused flite_hw_set_camera_polarity() Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 02/12] media: fimc-lite: constify several pointers in function arguments Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 03/12] media: fimc-lite: constify pointers to v4l2_pix_format_mplane Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 04/12] media: fimc-is: drop unused fimc_vidioc_enum_fmt_mplane() Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 05/12] media: fimc-is: constify clock names Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 06/12] media: fimc-is: constify several pointers in function arguments Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 07/12] media: fimc-is: constify local pointers to fimc_fmt Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 08/12] media: fimc-is: constify fimc_formats array Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 09/12] media: fimc-is: constify pointers to v4l2_pix_format_mplane Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 10/12] media: fimc-is: constify local pointers to fimc_dma_offset Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski [this message] 2023-12-24 11:49 ` [PATCH 11/12] media: fimc-is: constify local pointers to fimc_vid_cap Krzysztof Kozlowski 2023-12-24 11:49 ` [PATCH 12/12] media: fimc-is: constify local pointers to fimc_frame Krzysztof Kozlowski 2023-12-24 11:49 ` Krzysztof Kozlowski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231224114916.111433-11-krzysztof.kozlowski@linaro.org \ --to=krzysztof.kozlowski@linaro.org \ --cc=alim.akhtar@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=mchehab@kernel.org \ --cc=s.nawrocki@samsung.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.