diff options
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-capture.c | 16 | ||||
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-core.h | 10 | ||||
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-reg.c | 8 | ||||
-rw-r--r-- | include/media/s5p_fimc.h (renamed from include/media/s3c_fimc.h) | 16 |
4 files changed, 25 insertions, 25 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index 3b208f8325ae..2dc6e82c8084 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "fimc-core.h" | 33 | #include "fimc-core.h" |
34 | 34 | ||
35 | static struct v4l2_subdev *fimc_subdev_register(struct fimc_dev *fimc, | 35 | static struct v4l2_subdev *fimc_subdev_register(struct fimc_dev *fimc, |
36 | struct s3c_fimc_isp_info *isp_info) | 36 | struct s5p_fimc_isp_info *isp_info) |
37 | { | 37 | { |
38 | struct i2c_adapter *i2c_adap; | 38 | struct i2c_adapter *i2c_adap; |
39 | struct fimc_vid_cap *vid_cap = &fimc->vid_cap; | 39 | struct fimc_vid_cap *vid_cap = &fimc->vid_cap; |
@@ -86,8 +86,8 @@ static void fimc_subdev_unregister(struct fimc_dev *fimc) | |||
86 | static int fimc_subdev_attach(struct fimc_dev *fimc, int index) | 86 | static int fimc_subdev_attach(struct fimc_dev *fimc, int index) |
87 | { | 87 | { |
88 | struct fimc_vid_cap *vid_cap = &fimc->vid_cap; | 88 | struct fimc_vid_cap *vid_cap = &fimc->vid_cap; |
89 | struct s3c_platform_fimc *pdata = fimc->pdata; | 89 | struct s5p_platform_fimc *pdata = fimc->pdata; |
90 | struct s3c_fimc_isp_info *isp_info; | 90 | struct s5p_fimc_isp_info *isp_info; |
91 | struct v4l2_subdev *sd; | 91 | struct v4l2_subdev *sd; |
92 | int i; | 92 | int i; |
93 | 93 | ||
@@ -115,7 +115,7 @@ static int fimc_subdev_attach(struct fimc_dev *fimc, int index) | |||
115 | 115 | ||
116 | static int fimc_isp_subdev_init(struct fimc_dev *fimc, int index) | 116 | static int fimc_isp_subdev_init(struct fimc_dev *fimc, int index) |
117 | { | 117 | { |
118 | struct s3c_fimc_isp_info *isp_info; | 118 | struct s5p_fimc_isp_info *isp_info; |
119 | int ret; | 119 | int ret; |
120 | 120 | ||
121 | ret = fimc_subdev_attach(fimc, index); | 121 | ret = fimc_subdev_attach(fimc, index); |
@@ -221,7 +221,7 @@ static int start_streaming(struct vb2_queue *q) | |||
221 | { | 221 | { |
222 | struct fimc_ctx *ctx = q->drv_priv; | 222 | struct fimc_ctx *ctx = q->drv_priv; |
223 | struct fimc_dev *fimc = ctx->fimc_dev; | 223 | struct fimc_dev *fimc = ctx->fimc_dev; |
224 | struct s3c_fimc_isp_info *isp_info; | 224 | struct s5p_fimc_isp_info *isp_info; |
225 | int ret; | 225 | int ret; |
226 | 226 | ||
227 | ret = v4l2_subdev_call(fimc->vid_cap.sd, video, s_stream, 1); | 227 | ret = v4l2_subdev_call(fimc->vid_cap.sd, video, s_stream, 1); |
@@ -570,8 +570,8 @@ static int fimc_cap_enum_input(struct file *file, void *priv, | |||
570 | struct v4l2_input *i) | 570 | struct v4l2_input *i) |
571 | { | 571 | { |
572 | struct fimc_ctx *ctx = priv; | 572 | struct fimc_ctx *ctx = priv; |
573 | struct s3c_platform_fimc *pldata = ctx->fimc_dev->pdata; | 573 | struct s5p_platform_fimc *pldata = ctx->fimc_dev->pdata; |
574 | struct s3c_fimc_isp_info *isp_info; | 574 | struct s5p_fimc_isp_info *isp_info; |
575 | 575 | ||
576 | if (i->index >= FIMC_MAX_CAMIF_CLIENTS) | 576 | if (i->index >= FIMC_MAX_CAMIF_CLIENTS) |
577 | return -EINVAL; | 577 | return -EINVAL; |
@@ -590,7 +590,7 @@ static int fimc_cap_s_input(struct file *file, void *priv, | |||
590 | { | 590 | { |
591 | struct fimc_ctx *ctx = priv; | 591 | struct fimc_ctx *ctx = priv; |
592 | struct fimc_dev *fimc = ctx->fimc_dev; | 592 | struct fimc_dev *fimc = ctx->fimc_dev; |
593 | struct s3c_platform_fimc *pdata = fimc->pdata; | 593 | struct s5p_platform_fimc *pdata = fimc->pdata; |
594 | 594 | ||
595 | if (fimc_capture_active(ctx->fimc_dev)) | 595 | if (fimc_capture_active(ctx->fimc_dev)) |
596 | return -EBUSY; | 596 | return -EBUSY; |
diff --git a/drivers/media/video/s5p-fimc/fimc-core.h b/drivers/media/video/s5p-fimc/fimc-core.h index 187af60bcf69..b23d492796e9 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.h +++ b/drivers/media/video/s5p-fimc/fimc-core.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <media/v4l2-device.h> | 21 | #include <media/v4l2-device.h> |
22 | #include <media/v4l2-mem2mem.h> | 22 | #include <media/v4l2-mem2mem.h> |
23 | #include <media/v4l2-mediabus.h> | 23 | #include <media/v4l2-mediabus.h> |
24 | #include <media/s3c_fimc.h> | 24 | #include <media/s5p_fimc.h> |
25 | 25 | ||
26 | #include "regs-fimc.h" | 26 | #include "regs-fimc.h" |
27 | 27 | ||
@@ -421,7 +421,7 @@ struct fimc_dev { | |||
421 | spinlock_t slock; | 421 | spinlock_t slock; |
422 | struct mutex lock; | 422 | struct mutex lock; |
423 | struct platform_device *pdev; | 423 | struct platform_device *pdev; |
424 | struct s3c_platform_fimc *pdata; | 424 | struct s5p_platform_fimc *pdata; |
425 | struct samsung_fimc_variant *variant; | 425 | struct samsung_fimc_variant *variant; |
426 | int id; | 426 | int id; |
427 | struct clk *clock[NUM_FIMC_CLOCKS]; | 427 | struct clk *clock[NUM_FIMC_CLOCKS]; |
@@ -583,12 +583,12 @@ void fimc_hw_set_input_addr(struct fimc_dev *fimc, struct fimc_addr *paddr); | |||
583 | void fimc_hw_set_output_addr(struct fimc_dev *fimc, struct fimc_addr *paddr, | 583 | void fimc_hw_set_output_addr(struct fimc_dev *fimc, struct fimc_addr *paddr, |
584 | int index); | 584 | int index); |
585 | int fimc_hw_set_camera_source(struct fimc_dev *fimc, | 585 | int fimc_hw_set_camera_source(struct fimc_dev *fimc, |
586 | struct s3c_fimc_isp_info *cam); | 586 | struct s5p_fimc_isp_info *cam); |
587 | int fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f); | 587 | int fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f); |
588 | int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, | 588 | int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, |
589 | struct s3c_fimc_isp_info *cam); | 589 | struct s5p_fimc_isp_info *cam); |
590 | int fimc_hw_set_camera_type(struct fimc_dev *fimc, | 590 | int fimc_hw_set_camera_type(struct fimc_dev *fimc, |
591 | struct s3c_fimc_isp_info *cam); | 591 | struct s5p_fimc_isp_info *cam); |
592 | 592 | ||
593 | /* -----------------------------------------------------*/ | 593 | /* -----------------------------------------------------*/ |
594 | /* fimc-core.c */ | 594 | /* fimc-core.c */ |
diff --git a/drivers/media/video/s5p-fimc/fimc-reg.c b/drivers/media/video/s5p-fimc/fimc-reg.c index 5ed8f06ca015..ae33bc1c7bd4 100644 --- a/drivers/media/video/s5p-fimc/fimc-reg.c +++ b/drivers/media/video/s5p-fimc/fimc-reg.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | #include <mach/map.h> | 15 | #include <mach/map.h> |
16 | #include <media/s3c_fimc.h> | 16 | #include <media/s5p_fimc.h> |
17 | 17 | ||
18 | #include "fimc-core.h" | 18 | #include "fimc-core.h" |
19 | 19 | ||
@@ -532,7 +532,7 @@ void fimc_hw_set_output_addr(struct fimc_dev *dev, | |||
532 | } | 532 | } |
533 | 533 | ||
534 | int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, | 534 | int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, |
535 | struct s3c_fimc_isp_info *cam) | 535 | struct s5p_fimc_isp_info *cam) |
536 | { | 536 | { |
537 | u32 cfg = readl(fimc->regs + S5P_CIGCTRL); | 537 | u32 cfg = readl(fimc->regs + S5P_CIGCTRL); |
538 | 538 | ||
@@ -557,7 +557,7 @@ int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, | |||
557 | } | 557 | } |
558 | 558 | ||
559 | int fimc_hw_set_camera_source(struct fimc_dev *fimc, | 559 | int fimc_hw_set_camera_source(struct fimc_dev *fimc, |
560 | struct s3c_fimc_isp_info *cam) | 560 | struct s5p_fimc_isp_info *cam) |
561 | { | 561 | { |
562 | struct fimc_frame *f = &fimc->vid_cap.ctx->s_frame; | 562 | struct fimc_frame *f = &fimc->vid_cap.ctx->s_frame; |
563 | u32 cfg = 0; | 563 | u32 cfg = 0; |
@@ -624,7 +624,7 @@ int fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f) | |||
624 | } | 624 | } |
625 | 625 | ||
626 | int fimc_hw_set_camera_type(struct fimc_dev *fimc, | 626 | int fimc_hw_set_camera_type(struct fimc_dev *fimc, |
627 | struct s3c_fimc_isp_info *cam) | 627 | struct s5p_fimc_isp_info *cam) |
628 | { | 628 | { |
629 | u32 cfg, tmp; | 629 | u32 cfg, tmp; |
630 | struct fimc_vid_cap *vid_cap = &fimc->vid_cap; | 630 | struct fimc_vid_cap *vid_cap = &fimc->vid_cap; |
diff --git a/include/media/s3c_fimc.h b/include/media/s5p_fimc.h index ca1b6738e4a4..eb8793fd150e 100644 --- a/include/media/s3c_fimc.h +++ b/include/media/s5p_fimc.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef S3C_FIMC_H_ | 12 | #ifndef S5P_FIMC_H_ |
13 | #define S3C_FIMC_H_ | 13 | #define S5P_FIMC_H_ |
14 | 14 | ||
15 | enum cam_bus_type { | 15 | enum cam_bus_type { |
16 | FIMC_ITU_601 = 1, | 16 | FIMC_ITU_601 = 1, |
@@ -27,7 +27,7 @@ enum cam_bus_type { | |||
27 | struct i2c_board_info; | 27 | struct i2c_board_info; |
28 | 28 | ||
29 | /** | 29 | /** |
30 | * struct s3c_fimc_isp_info - image sensor information required for host | 30 | * struct s5p_fimc_isp_info - image sensor information required for host |
31 | * interace configuration. | 31 | * interace configuration. |
32 | * | 32 | * |
33 | * @board_info: pointer to I2C subdevice's board info | 33 | * @board_info: pointer to I2C subdevice's board info |
@@ -37,7 +37,7 @@ struct i2c_board_info; | |||
37 | * @bus_width: camera data bus width in bits | 37 | * @bus_width: camera data bus width in bits |
38 | * @flags: flags defining bus signals polarity inversion (High by default) | 38 | * @flags: flags defining bus signals polarity inversion (High by default) |
39 | */ | 39 | */ |
40 | struct s3c_fimc_isp_info { | 40 | struct s5p_fimc_isp_info { |
41 | struct i2c_board_info *board_info; | 41 | struct i2c_board_info *board_info; |
42 | enum cam_bus_type bus_type; | 42 | enum cam_bus_type bus_type; |
43 | u16 i2c_bus_num; | 43 | u16 i2c_bus_num; |
@@ -50,11 +50,11 @@ struct s3c_fimc_isp_info { | |||
50 | #define FIMC_MAX_CAMIF_CLIENTS 2 | 50 | #define FIMC_MAX_CAMIF_CLIENTS 2 |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * struct s3c_platform_fimc - camera host interface platform data | 53 | * struct s5p_platform_fimc - camera host interface platform data |
54 | * | 54 | * |
55 | * @isp_info: properties of camera sensor required for host interface setup | 55 | * @isp_info: properties of camera sensor required for host interface setup |
56 | */ | 56 | */ |
57 | struct s3c_platform_fimc { | 57 | struct s5p_platform_fimc { |
58 | struct s3c_fimc_isp_info *isp_info[FIMC_MAX_CAMIF_CLIENTS]; | 58 | struct s5p_fimc_isp_info *isp_info[FIMC_MAX_CAMIF_CLIENTS]; |
59 | }; | 59 | }; |
60 | #endif /* S3C_FIMC_H_ */ | 60 | #endif /* S5P_FIMC_H_ */ |