[RFC/PATCH 01/13] ARM: Samsung: Extend MIPI PHY callback with an index argument
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri Jul 27 00:42:49 EST 2012
Hi Sylwester,
On Friday 25 May 2012 21:52:40 Sylwester Nawrocki wrote:
> For systems instantiated from device tree struct platform_device id
> field is always -1, add an 'id' argument to the s5p_csis_phy_enable()
> function so the MIPI-CSIS hardware instance index can be passed in
> by driver, for CONFIG_OF=y.
>
> Signed-off-by: Sylwester Nawrocki <s.nawrocki at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> ---
> arch/arm/plat-s5p/setup-mipiphy.c | 20 ++++++++------------
> arch/arm/plat-samsung/include/plat/mipi_csis.h | 10 ++++++----
> 2 files changed, 14 insertions(+), 16 deletions(-)
>
> diff --git a/arch/arm/plat-s5p/setup-mipiphy.c
> b/arch/arm/plat-s5p/setup-mipiphy.c index 683c466..146ecc3 100644
> --- a/arch/arm/plat-s5p/setup-mipiphy.c
> +++ b/arch/arm/plat-s5p/setup-mipiphy.c
> @@ -14,24 +14,19 @@
> #include <linux/spinlock.h>
> #include <mach/regs-clock.h>
>
> -static int __s5p_mipi_phy_control(struct platform_device *pdev,
> +static int __s5p_mipi_phy_control(struct platform_device *pdev, int id,
> bool on, u32 reset)
What about removing the pdev argument, as it's now not needed ?
--
Regards,
Laurent Pinchart
More information about the devicetree-discuss
mailing list