diff options
Diffstat (limited to 'drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c')
| -rw-r--r-- | drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c b/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c index b8156855f2b7..a8698b7a7566 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c | |||
| @@ -28,6 +28,8 @@ | |||
| 28 | * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web | 28 | * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web |
| 29 | */ | 29 | */ |
| 30 | 30 | ||
| 31 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
| 32 | |||
| 31 | #include "stv06xx_hdcs.h" | 33 | #include "stv06xx_hdcs.h" |
| 32 | 34 | ||
| 33 | static const struct ctrl hdcs1x00_ctrl[] = { | 35 | static const struct ctrl hdcs1x00_ctrl[] = { |
| @@ -428,7 +430,7 @@ static int hdcs_probe_1x00(struct sd *sd) | |||
| 428 | if (ret < 0 || sensor != 0x08) | 430 | if (ret < 0 || sensor != 0x08) |
| 429 | return -ENODEV; | 431 | return -ENODEV; |
| 430 | 432 | ||
| 431 | info("HDCS-1000/1100 sensor detected"); | 433 | pr_info("HDCS-1000/1100 sensor detected\n"); |
| 432 | 434 | ||
| 433 | sd->gspca_dev.cam.cam_mode = hdcs1x00_mode; | 435 | sd->gspca_dev.cam.cam_mode = hdcs1x00_mode; |
| 434 | sd->gspca_dev.cam.nmodes = ARRAY_SIZE(hdcs1x00_mode); | 436 | sd->gspca_dev.cam.nmodes = ARRAY_SIZE(hdcs1x00_mode); |
| @@ -487,7 +489,7 @@ static int hdcs_probe_1020(struct sd *sd) | |||
| 487 | if (ret < 0 || sensor != 0x10) | 489 | if (ret < 0 || sensor != 0x10) |
| 488 | return -ENODEV; | 490 | return -ENODEV; |
| 489 | 491 | ||
| 490 | info("HDCS-1020 sensor detected"); | 492 | pr_info("HDCS-1020 sensor detected\n"); |
| 491 | 493 | ||
| 492 | sd->gspca_dev.cam.cam_mode = hdcs1020_mode; | 494 | sd->gspca_dev.cam.cam_mode = hdcs1020_mode; |
| 493 | sd->gspca_dev.cam.nmodes = ARRAY_SIZE(hdcs1020_mode); | 495 | sd->gspca_dev.cam.nmodes = ARRAY_SIZE(hdcs1020_mode); |
| @@ -601,11 +603,11 @@ static int hdcs_dump(struct sd *sd) | |||
| 601 | { | 603 | { |
| 602 | u16 reg, val; | 604 | u16 reg, val; |
| 603 | 605 | ||
| 604 | info("Dumping sensor registers:"); | 606 | pr_info("Dumping sensor registers:\n"); |
| 605 | 607 | ||
| 606 | for (reg = HDCS_IDENT; reg <= HDCS_ROWEXPH; reg++) { | 608 | for (reg = HDCS_IDENT; reg <= HDCS_ROWEXPH; reg++) { |
| 607 | stv06xx_read_sensor(sd, reg, &val); | 609 | stv06xx_read_sensor(sd, reg, &val); |
| 608 | info("reg 0x%02x = 0x%02x", reg, val); | 610 | pr_info("reg 0x%02x = 0x%02x\n", reg, val); |
| 609 | } | 611 | } |
| 610 | return 0; | 612 | return 0; |
| 611 | } | 613 | } |
