Re: [PATCH] i2c: tegra: drop duplicated code for assigning algo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ping...

2015-09-07 11:08 GMT+08:00 Barry Song <21cnbao@xxxxxxxxx>:
> This code is repeated in probe:
> i2c_dev->adapter.algo = &tegra_i2c_algo;
>
> Cc: Donglin Peng <pengdonglin137@xxxxxxx>
> Signed-off-by: Barry Song <21cnbao@xxxxxxxxx>
> ---
>  drivers/i2c/busses/i2c-tegra.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
> index 78a3668..9ab720b 100644
> --- a/drivers/i2c/busses/i2c-tegra.c
> +++ b/drivers/i2c/busses/i2c-tegra.c
> @@ -825,7 +825,6 @@ static int tegra_i2c_probe(struct platform_device *pdev)
>         i2c_dev->adapter.class = I2C_CLASS_DEPRECATED;
>         strlcpy(i2c_dev->adapter.name, "Tegra I2C adapter",
>                 sizeof(i2c_dev->adapter.name));
> -       i2c_dev->adapter.algo = &tegra_i2c_algo;
>         i2c_dev->adapter.dev.parent = &pdev->dev;
>         i2c_dev->adapter.nr = pdev->id;
>         i2c_dev->adapter.dev.of_node = pdev->dev.of_node;
> --
> 1.9.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux