diff options
Diffstat (limited to 'drivers/media/video/mt9v022.c')
-rw-r--r-- | drivers/media/video/mt9v022.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c index e609ff51aa66..ab1965425289 100644 --- a/drivers/media/video/mt9v022.c +++ b/drivers/media/video/mt9v022.c | |||
@@ -224,7 +224,7 @@ static int mt9v022_set_bus_param(struct soc_camera_device *icd, | |||
224 | if (ret < 0) | 224 | if (ret < 0) |
225 | return ret; | 225 | return ret; |
226 | 226 | ||
227 | dev_dbg(&icd->dev, "Calculated pixclk 0x%x, chip control 0x%x\n", | 227 | dev_dbg(&client->dev, "Calculated pixclk 0x%x, chip control 0x%x\n", |
228 | pixclk, mt9v022->chip_control); | 228 | pixclk, mt9v022->chip_control); |
229 | 229 | ||
230 | return 0; | 230 | return 0; |
@@ -287,7 +287,7 @@ static int mt9v022_s_crop(struct v4l2_subdev *sd, struct v4l2_crop *a) | |||
287 | if (ret < 0) | 287 | if (ret < 0) |
288 | return ret; | 288 | return ret; |
289 | 289 | ||
290 | dev_dbg(&icd->dev, "Frame %ux%u pixel\n", rect->width, rect->height); | 290 | dev_dbg(&client->dev, "Frame %ux%u pixel\n", rect->width, rect->height); |
291 | 291 | ||
292 | return 0; | 292 | return 0; |
293 | } | 293 | } |
@@ -545,7 +545,7 @@ static int mt9v022_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl) | |||
545 | if (reg_clear(client, MT9V022_AEC_AGC_ENABLE, 0x2) < 0) | 545 | if (reg_clear(client, MT9V022_AEC_AGC_ENABLE, 0x2) < 0) |
546 | return -EIO; | 546 | return -EIO; |
547 | 547 | ||
548 | dev_info(&icd->dev, "Setting gain from %d to %lu\n", | 548 | dev_info(&client->dev, "Setting gain from %d to %lu\n", |
549 | reg_read(client, MT9V022_ANALOG_GAIN), gain); | 549 | reg_read(client, MT9V022_ANALOG_GAIN), gain); |
550 | if (reg_write(client, MT9V022_ANALOG_GAIN, gain) < 0) | 550 | if (reg_write(client, MT9V022_ANALOG_GAIN, gain) < 0) |
551 | return -EIO; | 551 | return -EIO; |
@@ -566,7 +566,7 @@ static int mt9v022_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl) | |||
566 | if (reg_clear(client, MT9V022_AEC_AGC_ENABLE, 0x1) < 0) | 566 | if (reg_clear(client, MT9V022_AEC_AGC_ENABLE, 0x1) < 0) |
567 | return -EIO; | 567 | return -EIO; |
568 | 568 | ||
569 | dev_dbg(&icd->dev, "Shutter width from %d to %lu\n", | 569 | dev_dbg(&client->dev, "Shutter width from %d to %lu\n", |
570 | reg_read(client, MT9V022_TOTAL_SHUTTER_WIDTH), | 570 | reg_read(client, MT9V022_TOTAL_SHUTTER_WIDTH), |
571 | shutter); | 571 | shutter); |
572 | if (reg_write(client, MT9V022_TOTAL_SHUTTER_WIDTH, | 572 | if (reg_write(client, MT9V022_TOTAL_SHUTTER_WIDTH, |
@@ -616,7 +616,7 @@ static int mt9v022_video_probe(struct soc_camera_device *icd, | |||
616 | /* must be 0x1311 or 0x1313 */ | 616 | /* must be 0x1311 or 0x1313 */ |
617 | if (data != 0x1311 && data != 0x1313) { | 617 | if (data != 0x1311 && data != 0x1313) { |
618 | ret = -ENODEV; | 618 | ret = -ENODEV; |
619 | dev_info(&icd->dev, "No MT9V022 detected, ID register 0x%x\n", | 619 | dev_info(&client->dev, "No MT9V022 found, ID register 0x%x\n", |
620 | data); | 620 | data); |
621 | goto ei2c; | 621 | goto ei2c; |
622 | } | 622 | } |
@@ -628,7 +628,7 @@ static int mt9v022_video_probe(struct soc_camera_device *icd, | |||
628 | /* 15 clock cycles */ | 628 | /* 15 clock cycles */ |
629 | udelay(200); | 629 | udelay(200); |
630 | if (reg_read(client, MT9V022_RESET)) { | 630 | if (reg_read(client, MT9V022_RESET)) { |
631 | dev_err(&icd->dev, "Resetting MT9V022 failed!\n"); | 631 | dev_err(&client->dev, "Resetting MT9V022 failed!\n"); |
632 | if (ret > 0) | 632 | if (ret > 0) |
633 | ret = -EIO; | 633 | ret = -EIO; |
634 | goto ei2c; | 634 | goto ei2c; |
@@ -669,7 +669,7 @@ static int mt9v022_video_probe(struct soc_camera_device *icd, | |||
669 | if (flags & SOCAM_DATAWIDTH_8) | 669 | if (flags & SOCAM_DATAWIDTH_8) |
670 | icd->num_formats++; | 670 | icd->num_formats++; |
671 | 671 | ||
672 | dev_info(&icd->dev, "Detected a MT9V022 chip ID %x, %s sensor\n", | 672 | dev_info(&client->dev, "Detected a MT9V022 chip ID %x, %s sensor\n", |
673 | data, mt9v022->model == V4L2_IDENT_MT9V022IX7ATM ? | 673 | data, mt9v022->model == V4L2_IDENT_MT9V022IX7ATM ? |
674 | "monochrome" : "colour"); | 674 | "monochrome" : "colour"); |
675 | 675 | ||
@@ -682,7 +682,7 @@ static void mt9v022_video_remove(struct soc_camera_device *icd) | |||
682 | struct i2c_client *client = to_i2c_client(to_soc_camera_control(icd)); | 682 | struct i2c_client *client = to_i2c_client(to_soc_camera_control(icd)); |
683 | struct soc_camera_link *icl = to_soc_camera_link(icd); | 683 | struct soc_camera_link *icl = to_soc_camera_link(icd); |
684 | 684 | ||
685 | dev_dbg(&icd->dev, "Video %x removed: %p, %p\n", client->addr, | 685 | dev_dbg(&client->dev, "Video %x removed: %p, %p\n", client->addr, |
686 | icd->dev.parent, icd->vdev); | 686 | icd->dev.parent, icd->vdev); |
687 | if (icl->free_bus) | 687 | if (icl->free_bus) |
688 | icl->free_bus(icl); | 688 | icl->free_bus(icl); |