diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-09-17 05:03:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-05 21:33:39 -0400 |
commit | ccbfd1d49dc0d6a6edab827ab4888cf93348f249 (patch) | |
tree | 1c3efacbc618e1282e7e8102043766c42636514f /include | |
parent | eabe7b01c249c9d8166a1a10bb6effce2b3de665 (diff) |
[media] s5p-csis: Replace phy_enable platform data callback with direct call
The phy_enable callback is common for all Samsung SoC platforms,
replace it with direct function call so the MIPI-CSI2 DPHY control
is also possible on device tree instantiated platforms.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/mipi-csis.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/platform_data/mipi-csis.h b/include/linux/platform_data/mipi-csis.h index c45b1e8d4c2e..2e59e4306766 100644 --- a/include/linux/platform_data/mipi-csis.h +++ b/include/linux/platform_data/mipi-csis.h | |||
@@ -11,8 +11,6 @@ | |||
11 | #ifndef __PLAT_SAMSUNG_MIPI_CSIS_H_ | 11 | #ifndef __PLAT_SAMSUNG_MIPI_CSIS_H_ |
12 | #define __PLAT_SAMSUNG_MIPI_CSIS_H_ __FILE__ | 12 | #define __PLAT_SAMSUNG_MIPI_CSIS_H_ __FILE__ |
13 | 13 | ||
14 | struct platform_device; | ||
15 | |||
16 | /** | 14 | /** |
17 | * struct s5p_platform_mipi_csis - platform data for S5P MIPI-CSIS driver | 15 | * struct s5p_platform_mipi_csis - platform data for S5P MIPI-CSIS driver |
18 | * @clk_rate: bus clock frequency | 16 | * @clk_rate: bus clock frequency |
@@ -34,10 +32,11 @@ struct s5p_platform_mipi_csis { | |||
34 | 32 | ||
35 | /** | 33 | /** |
36 | * s5p_csis_phy_enable - global MIPI-CSI receiver D-PHY control | 34 | * s5p_csis_phy_enable - global MIPI-CSI receiver D-PHY control |
37 | * @pdev: MIPI-CSIS platform device | 35 | * @id: MIPI-CSIS harware instance index (0...1) |
38 | * @on: true to enable D-PHY and deassert its reset | 36 | * @on: true to enable D-PHY and deassert its reset |
39 | * false to disable D-PHY | 37 | * false to disable D-PHY |
38 | * @return: 0 on success, or negative error code on failure | ||
40 | */ | 39 | */ |
41 | int s5p_csis_phy_enable(struct platform_device *pdev, bool on); | 40 | int s5p_csis_phy_enable(int id, bool on); |
42 | 41 | ||
43 | #endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */ | 42 | #endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */ |