diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-04-27 02:38:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-17 10:57:17 -0400 |
commit | 2a9ec3731137f973c6289698de6566a25418b96f (patch) | |
tree | eb223ef2c2860dc1dd7bdd6fa06a7fca2210b133 /drivers/media/i2c | |
parent | 9ea1b7a4b66fddfab9e65e243b72d18371f8d9a5 (diff) |
[media] v4l2-ctrls: use ptrs for all but the s32 type
Rather than having two unions for all types just keep 'val' and
'cur.val' and use the p_cur and p_new unions to access all others.
The only reason for keeping 'val' and 'cur.val' is that it is used
all over, so converting this as well would be a huge job.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/mt9v032.c | 2 | ||||
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index 65e6e1a9d104..435e9e661bbb 100644 --- a/drivers/media/i2c/mt9v032.c +++ b/drivers/media/i2c/mt9v032.c | |||
@@ -667,7 +667,7 @@ static int mt9v032_s_ctrl(struct v4l2_ctrl *ctrl) | |||
667 | break; | 667 | break; |
668 | 668 | ||
669 | freq = mt9v032->pdata->link_freqs[mt9v032->link_freq->val]; | 669 | freq = mt9v032->pdata->link_freqs[mt9v032->link_freq->val]; |
670 | mt9v032->pixel_rate->val64 = freq; | 670 | *mt9v032->pixel_rate->p_new.p_s64 = freq; |
671 | mt9v032->sysclk = freq; | 671 | mt9v032->sysclk = freq; |
672 | break; | 672 | break; |
673 | 673 | ||
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 72350f0befc5..13411e9a0e25 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c | |||
@@ -297,8 +297,8 @@ static int smiapp_pll_update(struct smiapp_sensor *sensor) | |||
297 | if (rval < 0) | 297 | if (rval < 0) |
298 | return rval; | 298 | return rval; |
299 | 299 | ||
300 | sensor->pixel_rate_parray->cur.val64 = pll->vt_pix_clk_freq_hz; | 300 | *sensor->pixel_rate_parray->p_cur.p_s64 = pll->vt_pix_clk_freq_hz; |
301 | sensor->pixel_rate_csi->cur.val64 = pll->pixel_rate_csi; | 301 | *sensor->pixel_rate_csi->p_cur.p_s64 = pll->pixel_rate_csi; |
302 | 302 | ||
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |