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

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

 



> @@ -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;

I think it would be more consistent to keep this one and move the quirk
assignment also down here; then all adapter assignments are in one
place.

Attachment: signature.asc
Description: Digital signature


[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