Re: [PATCH 1/2] eeprom: at24: use devm_i2c_new_dummy_device()

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

 



> Now that it's upstream, use the resource managed version
> of i2c_new_dummy().

That was fast :)

> -	dummy_client = i2c_new_dummy(base_client->adapter,
> -				     base_client->addr + index);
> +	dummy_client = devm_i2c_new_dummy_device(dev, base_client->adapter,
> +						 base_client->addr + index);
>  	if (!dummy_client) {

Oh well, the confusion starts already :/ devm_i2c_new_dummy_device()
returns an ERR_PTR.

Attachment: signature.asc
Description: PGP 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