Re: [PATCH] i2c: Adding the i2c-bit-platform bus

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

 



On Tue, May 10, 2011 at 3:35 PM, Ben Dooks <ben-i2c@xxxxxxxxx> wrote:
> On Sat, May 07, 2011 at 02:53:05PM +0300, Eran Duchan wrote:
>> +static int __devinit i2c_bit_platform_probe(struct platform_device *pdev)
>> +{
>> +     struct i2c_algo_bit_data *bit_data;
>> +     struct i2c_adapter *adap;
>> +     int ret;
>> +
>> +     if (pdev->dev.platform_data == NULL)
>> +             ret = -ENXIO;
>
> minor point, this will probably not get shown by the bus layer.
> Not sure what's best here, some people don't like -ENOENT here.

I think ENXIO is fine though. Many drivers use it to indicate "I don't
have enough information to initialize this device".

Havard
--
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