diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-04-25 02:57:35 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-06-26 16:39:34 +0200 |
commit | 27d8f61ee977e15bc1b6c36fca1abe5d08919782 (patch) | |
tree | c246683145e823babb8fc1fbbc8f1e7722b8acca | |
parent | 73a4385c6947df393ffb4bcdf84eef1294057d0c (diff) | |
download | lwn-27d8f61ee977e15bc1b6c36fca1abe5d08919782.tar.gz lwn-27d8f61ee977e15bc1b6c36fca1abe5d08919782.zip |
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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | drivers/media/test-drivers/vimc/vimc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vimc/vimc-core.c b/drivers/media/test-drivers/vimc/vimc-core.c index af127476e920..2083c60e34d6 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 |