Commit 27d8f61e authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Hans Verkuil

media: vimc: Constify the ent_config array

The ent_config array contains data that is never modified. Make it
const.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 73a4385c
...@@ -81,7 +81,7 @@ struct vimc_pipeline_config { ...@@ -81,7 +81,7 @@ struct vimc_pipeline_config {
* Topology Configuration * Topology Configuration
*/ */
static struct vimc_ent_config ent_config[] = { static const struct vimc_ent_config ent_config[] = {
[SENSOR_A] = { [SENSOR_A] = {
.name = "Sensor A", .name = "Sensor A",
.type = &vimc_sensor_type .type = &vimc_sensor_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment