diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2008-12-18 09:51:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:40:21 -0500 |
commit | 64f5905ee74906643e22657bd20e2f11443053f0 (patch) | |
tree | 17aaf01284c3297d835f3167098be9333df9b188 /drivers/media/video/soc_camera_platform.c | |
parent | 9414de39e8e07d90bdb6524be501fae0e013d37b (diff) |
V4L/DVB (10080): soc-camera: readability improvements, more strict operations checks
Simplify multiple drivers by replacing f->fmt.pix.* with a single pointer
dereference, merge some needlessly broken lines, verify host and camera
operations pointers on registration.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/soc_camera_platform.c')
-rw-r--r-- | drivers/media/video/soc_camera_platform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/soc_camera_platform.c b/drivers/media/video/soc_camera_platform.c index c23871e4c1e6..013ab06e3180 100644 --- a/drivers/media/video/soc_camera_platform.c +++ b/drivers/media/video/soc_camera_platform.c | |||
@@ -89,9 +89,10 @@ static int soc_camera_platform_try_fmt(struct soc_camera_device *icd, | |||
89 | struct v4l2_format *f) | 89 | struct v4l2_format *f) |
90 | { | 90 | { |
91 | struct soc_camera_platform_info *p = soc_camera_platform_get_info(icd); | 91 | struct soc_camera_platform_info *p = soc_camera_platform_get_info(icd); |
92 | struct v4l2_pix_format *pix = &f->fmt.pix; | ||
92 | 93 | ||
93 | f->fmt.pix.width = p->format.width; | 94 | pix->width = p->format.width; |
94 | f->fmt.pix.height = p->format.height; | 95 | pix->height = p->format.height; |
95 | return 0; | 96 | return 0; |
96 | } | 97 | } |
97 | 98 | ||