aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-10-09 09:14:37 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-10-09 09:14:37 +0200
commitacec5ab54458eb5f6c64faf259a83305398fcff7 (patch)
tree46935e8b6de4db713c61f9fdd4d3bc315500f595
parent3ab57682384cccc052812543e535ba545b50d3c0 (diff)
tc358840: change pll_* variables to u32tegrav5
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--drivers/media/i2c/tc358840.c6
-rw-r--r--include/media/i2c/tc358840.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/i2c/tc358840.c b/drivers/media/i2c/tc358840.c
index 5ee8c2b15a0e..713c01ebaed5 100644
--- a/drivers/media/i2c/tc358840.c
+++ b/drivers/media/i2c/tc358840.c
@@ -2885,9 +2885,9 @@ static bool tc358840_parse_dt(struct tc358840_platform_data *pdata,
of_property_read_u32(node, "ths_trailcnt", &pdata->ths_trailcnt) ||
of_property_read_u32(node, "hstxvregcnt", &pdata->hstxvregcnt) ||
of_property_read_u32(node, "btacnt", &pdata->btacnt) ||
- of_property_read_u16(node, "pll_prd", &pdata->pll_prd) ||
- of_property_read_u16(node, "pll_frs", &pdata->pll_frs) ||
- of_property_read_u16(node, "pll_fbd", &pdata->pll_fbd))
+ of_property_read_u32(node, "pll_prd", &pdata->pll_prd) ||
+ of_property_read_u32(node, "pll_frs", &pdata->pll_frs) ||
+ of_property_read_u32(node, "pll_fbd", &pdata->pll_fbd))
goto free_endpoint;
if (pdata->ddc5v_delay > DDC5V_DELAY_MAX)
diff --git a/include/media/i2c/tc358840.h b/include/media/i2c/tc358840.h
index af5d74bc3f15..1437f91424fd 100644
--- a/include/media/i2c/tc358840.h
+++ b/include/media/i2c/tc358840.h
@@ -59,9 +59,9 @@ struct tc358840_platform_data {
/* PLL */
/* Bps per lane is (refclk_hz / (prd + 1) * (fbd + 1)) / 2^frs */
- u16 pll_prd;
- u16 pll_fbd;
- u16 pll_frs;
+ u32 pll_prd;
+ u32 pll_fbd;
+ u32 pll_frs;
};
/* custom controls */

Privacy Policy