aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9t031.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-12-11 09:15:05 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-16 06:27:15 -0500
commit5d28d525452f170e30bc038955439731462a5228 (patch)
tree319c221f63b580cdec53a046b2fe5af2e0b92b36 /drivers/media/video/mt9t031.c
parent325361088b73269f4cc96256276a142addbf3454 (diff)
V4L/DVB (13645): soc-camera: fix multi-line comment coding style
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mt9t031.c')
-rw-r--r--drivers/media/video/mt9t031.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/media/video/mt9t031.c b/drivers/media/video/mt9t031.c
index 1adbb7b2b580..e3f664f21c48 100644
--- a/drivers/media/video/mt9t031.c
+++ b/drivers/media/video/mt9t031.c
@@ -17,9 +17,11 @@
17#include <media/v4l2-chip-ident.h> 17#include <media/v4l2-chip-ident.h>
18#include <media/soc_camera.h> 18#include <media/soc_camera.h>
19 19
20/* mt9t031 i2c address 0x5d 20/*
21 * mt9t031 i2c address 0x5d
21 * The platform has to define i2c_board_info and link to it from 22 * The platform has to define i2c_board_info and link to it from
22 * struct soc_camera_link */ 23 * struct soc_camera_link
24 */
23 25
24/* mt9t031 selected register addresses */ 26/* mt9t031 selected register addresses */
25#define MT9T031_CHIP_VERSION 0x00 27#define MT9T031_CHIP_VERSION 0x00
@@ -292,8 +294,10 @@ static int mt9t031_set_params(struct soc_camera_device *icd,
292 dev_dbg(&client->dev, "new physical left %u, top %u\n", 294 dev_dbg(&client->dev, "new physical left %u, top %u\n",
293 rect->left, rect->top); 295 rect->left, rect->top);
294 296
295 /* The caller provides a supported format, as guaranteed by 297 /*
296 * icd->try_fmt_cap(), soc_camera_s_crop() and soc_camera_cropcap() */ 298 * The caller provides a supported format, as guaranteed by
299 * icd->try_fmt_cap(), soc_camera_s_crop() and soc_camera_cropcap()
300 */
297 if (ret >= 0) 301 if (ret >= 0)
298 ret = reg_write(client, MT9T031_COLUMN_START, rect->left); 302 ret = reg_write(client, MT9T031_COLUMN_START, rect->left);
299 if (ret >= 0) 303 if (ret >= 0)
@@ -674,8 +678,10 @@ static int mt9t031_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
674 return 0; 678 return 0;
675} 679}
676 680
677/* Interface active, can use i2c. If it fails, it can indeed mean, that 681/*
678 * this wasn't our capture interface, so, we wait for the right one */ 682 * Interface active, can use i2c. If it fails, it can indeed mean, that
683 * this wasn't our capture interface, so, we wait for the right one
684 */
679static int mt9t031_video_probe(struct i2c_client *client) 685static int mt9t031_video_probe(struct i2c_client *client)
680{ 686{
681 struct soc_camera_device *icd = client->dev.platform_data; 687 struct soc_camera_device *icd = client->dev.platform_data;
@@ -796,8 +802,10 @@ static int mt9t031_probe(struct i2c_client *client,
796 mt9t031->rect.width = MT9T031_MAX_WIDTH; 802 mt9t031->rect.width = MT9T031_MAX_WIDTH;
797 mt9t031->rect.height = MT9T031_MAX_HEIGHT; 803 mt9t031->rect.height = MT9T031_MAX_HEIGHT;
798 804
799 /* Simulated autoexposure. If enabled, we calculate shutter width 805 /*
800 * ourselves in the driver based on vertical blanking and frame width */ 806 * Simulated autoexposure. If enabled, we calculate shutter width
807 * ourselves in the driver based on vertical blanking and frame width
808 */
801 mt9t031->autoexposure = 1; 809 mt9t031->autoexposure = 1;
802 810
803 mt9t031->xskip = 1; 811 mt9t031->xskip = 1;