From: Laurent Pinchart Date: Wed, 24 Apr 2024 23:57:35 +0000 (+0300) Subject: media: vimc: Constify the ent_config array X-Git-Tag: v6.11-rc1~142^2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d8f61ee977e15bc1b6c36fca1abe5d08919782;p=thirdparty%2Fkernel%2Flinux.git media: vimc: Constify the ent_config array The ent_config array contains data that is never modified. Make it const. Signed-off-by: Laurent Pinchart Signed-off-by: Shuah Khan Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/test-drivers/vimc/vimc-core.c b/drivers/media/test-drivers/vimc/vimc-core.c index af127476e920e..2083c60e34d6a 100644 --- a/drivers/media/test-drivers/vimc/vimc-core.c +++ b/drivers/media/test-drivers/vimc/vimc-core.c @@ -81,7 +81,7 @@ struct vimc_pipeline_config { * Topology Configuration */ -static struct vimc_ent_config ent_config[] = { +static const struct vimc_ent_config ent_config[] = { [SENSOR_A] = { .name = "Sensor A", .type = &vimc_sensor_type