]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: exynos4-is: make const array config_ids static
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Oct 2018 14:20:27 +0000 (10:20 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 9 Oct 2018 12:02:30 +0000 (08:02 -0400)
The const array config_ids can be made static, saves populating it on
the stack and will make it read-only.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/exynos4-is/fimc-is.c

index 5ddb2321e9e48f74d41c803453cf2e112fcba22a..f5fc54de19dabf91b5943fa0bd535679c8333628 100644 (file)
@@ -656,7 +656,7 @@ static int fimc_is_hw_open_sensor(struct fimc_is *is,
 
 int fimc_is_hw_initialize(struct fimc_is *is)
 {
-       const int config_ids[] = {
+       static const int config_ids[] = {
                IS_SC_PREVIEW_STILL, IS_SC_PREVIEW_VIDEO,
                IS_SC_CAPTURE_STILL, IS_SC_CAPTURE_VIDEO
        };