Commit 9704762a authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: ti-vpe: cal: Constify platform data

Now that no platform data fields are modified at runtime, make the
corresponding structures const. The const qualifier for integer fields
is removed as it's not required anymore.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 01bd7499
...@@ -240,17 +240,17 @@ struct cal_csi2_phy { ...@@ -240,17 +240,17 @@ struct cal_csi2_phy {
unsigned int lsb; unsigned int lsb;
unsigned int msb; unsigned int msb;
} fields[F_MAX_FIELDS]; } fields[F_MAX_FIELDS];
const unsigned int num_lanes; unsigned int num_lanes;
}; };
struct cal_data { struct cal_data {
const unsigned int num_csi2_phy; unsigned int num_csi2_phy;
struct cal_csi2_phy *csi2_phy_core; const struct cal_csi2_phy *csi2_phy_core;
const unsigned int flags; unsigned int flags;
}; };
static struct cal_csi2_phy dra72x_cal_csi_phy[] = { static const struct cal_csi2_phy dra72x_cal_csi_phy[] = {
{ {
.fields = { .fields = {
[F_CTRLCLKEN] = { 10, 10 }, [F_CTRLCLKEN] = { 10, 10 },
...@@ -282,7 +282,7 @@ static const struct cal_data dra72x_es1_cal_data = { ...@@ -282,7 +282,7 @@ static const struct cal_data dra72x_es1_cal_data = {
.flags = DRA72_CAL_PRE_ES2_LDO_DISABLE, .flags = DRA72_CAL_PRE_ES2_LDO_DISABLE,
}; };
static struct cal_csi2_phy dra76x_cal_csi_phy[] = { static const struct cal_csi2_phy dra76x_cal_csi_phy[] = {
{ {
.fields = { .fields = {
[F_CTRLCLKEN] = { 8, 8 }, [F_CTRLCLKEN] = { 8, 8 },
...@@ -308,7 +308,7 @@ static const struct cal_data dra76x_cal_data = { ...@@ -308,7 +308,7 @@ static const struct cal_data dra76x_cal_data = {
.num_csi2_phy = ARRAY_SIZE(dra76x_cal_csi_phy), .num_csi2_phy = ARRAY_SIZE(dra76x_cal_csi_phy),
}; };
static struct cal_csi2_phy am654_cal_csi_phy[] = { static const struct cal_csi2_phy am654_cal_csi_phy[] = {
{ {
.fields = { .fields = {
[F_CTRLCLKEN] = { 15, 15 }, [F_CTRLCLKEN] = { 15, 15 },
......
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