diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-06-12 02:12:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 18:23:01 -0400 |
commit | a516d08fa6afb703ba508ccc55656d037c5b9e2e (patch) | |
tree | 742438b6d8e0a1d9694f1fe716f8c041a22ef5d9 /drivers/media/video/s5p-fimc | |
parent | c2d430af08f38a0b3145c3b60381146b8ac88c88 (diff) |
[media] s5p-fimc: Replace custom err() macro with v4l2_err() macro
Replace custom err() macro with v4l2_err() macro.
[s.nawrocki: added missing end-of-line at the log print]
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s5p-fimc')
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-core.h | 3 | ||||
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-reg.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-core.h b/drivers/media/video/s5p-fimc/fimc-core.h index 95b27ae5cf27..808ccc621846 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.h +++ b/drivers/media/video/s5p-fimc/fimc-core.h | |||
@@ -27,9 +27,6 @@ | |||
27 | #include <media/v4l2-mediabus.h> | 27 | #include <media/v4l2-mediabus.h> |
28 | #include <media/s5p_fimc.h> | 28 | #include <media/s5p_fimc.h> |
29 | 29 | ||
30 | #define err(fmt, args...) \ | ||
31 | printk(KERN_ERR "%s:%d: " fmt "\n", __func__, __LINE__, ##args) | ||
32 | |||
33 | #define dbg(fmt, args...) \ | 30 | #define dbg(fmt, args...) \ |
34 | pr_debug("%s:%d: " fmt "\n", __func__, __LINE__, ##args) | 31 | pr_debug("%s:%d: " fmt "\n", __func__, __LINE__, ##args) |
35 | 32 | ||
diff --git a/drivers/media/video/s5p-fimc/fimc-reg.c b/drivers/media/video/s5p-fimc/fimc-reg.c index 1fc4ce8446f5..74a2fba2c543 100644 --- a/drivers/media/video/s5p-fimc/fimc-reg.c +++ b/drivers/media/video/s5p-fimc/fimc-reg.c | |||
@@ -683,8 +683,8 @@ int fimc_hw_set_camera_type(struct fimc_dev *fimc, | |||
683 | cfg |= FIMC_REG_CIGCTRL_CAM_JPEG; | 683 | cfg |= FIMC_REG_CIGCTRL_CAM_JPEG; |
684 | break; | 684 | break; |
685 | default: | 685 | default: |
686 | v4l2_err(fimc->vid_cap.vfd, | 686 | v4l2_err(vid_cap->vfd, |
687 | "Not supported camera pixel format: %d", | 687 | "Not supported camera pixel format: %#x\n", |
688 | vid_cap->mf.code); | 688 | vid_cap->mf.code); |
689 | return -EINVAL; | 689 | return -EINVAL; |
690 | } | 690 | } |
@@ -699,7 +699,7 @@ int fimc_hw_set_camera_type(struct fimc_dev *fimc, | |||
699 | } else if (cam->bus_type == FIMC_LCD_WB) { | 699 | } else if (cam->bus_type == FIMC_LCD_WB) { |
700 | cfg |= FIMC_REG_CIGCTRL_CAMIF_SELWB; | 700 | cfg |= FIMC_REG_CIGCTRL_CAMIF_SELWB; |
701 | } else { | 701 | } else { |
702 | err("invalid camera bus type selected\n"); | 702 | v4l2_err(vid_cap->vfd, "Invalid camera bus type selected\n"); |
703 | return -EINVAL; | 703 | return -EINVAL; |
704 | } | 704 | } |
705 | writel(cfg, fimc->regs + FIMC_REG_CIGCTRL); | 705 | writel(cfg, fimc->regs + FIMC_REG_CIGCTRL); |